Update bt_height.py

This commit is contained in:
bt3gl 2023-08-08 13:49:24 -07:00 committed by GitHub
parent ffe28f3d8e
commit faeb83a072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
def height(root):
if not root:
if root is None:
return 0
return 1 + max(height(root.left), height(root.right))