mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 08:21:12 -04:00
Update bt_find_max_depth.py
This commit is contained in:
parent
b5c71cf3d5
commit
91cd6134b6
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# author: bt3gl
|
||||
|
||||
def max_depth(root: Optional[Node]) -> int:
|
||||
|
||||
def max_depth(root) -> int:
|
||||
|
||||
if root is None:
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue