We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ea09e commit 5ff28f7Copy full SHA for 5ff28f7
binarytree/__init__.py
@@ -18,7 +18,7 @@
18
19
20
def _is_balanced(root):
21
- """Return the height if the binary tree is balanced, -1 otherwise.
+ """Return the tree height + 1 if balanced, -1 otherwise.
22
23
:param root: Root node of the binary tree.
24
:type root: binarytree.Node | None
0 commit comments