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