Skip to content

Tree alg - #13172

Closed
Fiqqar wants to merge 8 commits into
TheAlgorithms:masterfrom
Fiqqar:tree-alg
Closed

Tree alg#13172
Fiqqar wants to merge 8 commits into
TheAlgorithms:masterfrom
Fiqqar:tree-alg

Conversation

@Fiqqar

Copy link
Copy Markdown

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request.
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms include at least one URL that points to Wikipedia or another similar explanation.
  • If this pull request resolves one or more open issues then the description above includes the issue number(s) with a closing keyword: "Fixes #ISSUE-NUMBER".

@algorithms-keeperalgorithms-keeperBot added the awaiting reviews This PR is ready to be reviewed label Oct 4, 2025
@algorithms-keeperalgorithms-keeperBot added the tests are failing Do not merge until tests pass label Oct 4, 2025
@algorithms-keeperalgorithms-keeperBot removed the tests are failing Do not merge until tests pass label Oct 4, 2025
@cclauss

Copy link
Copy Markdown
Member

We already have this algorithm:

defheight(root: Node|None) ->int:

@cclausscclauss closed this Sep 4, 2026
cclauss pushed a commit that referenced this pull request Sep 5, 2026
…batch) (#15189)
@cclauss managed the new-root-directory batch from #15081, closing/merging
all except #11842 (data-loss bug) and #12392 (no tests). Check the boxes for
the 10 now-resolved PRs across all three listings (flat, grouped-by-directory,
and 'Creates a new root directory').
Merged: #9896, #9388, #12141, #13231Closed: #13172, #12140, #13119, #11574, #13924, #14611
Still open (unchanged): #11842, #12392, #12648
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewsThis PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Fiqqar@cclauss