mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update and rename find_max_depth_tree.py to bt_find_max_depth.py
This commit is contained in:
parent
e0d9624032
commit
a0b0090f8a
@ -2,7 +2,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# author: bt3gl
|
# author: bt3gl
|
||||||
|
|
||||||
def max_depth(root: Optional[TreeNode]) -> int:
|
def max_depth(root: Optional[Node]) -> int:
|
||||||
|
|
||||||
if root is None:
|
if root is None:
|
||||||
return 0
|
return 0
|
Loading…
x
Reference in New Issue
Block a user