mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-23 08:51:31 -04:00
Update find_max_depth_tree.py
This commit is contained in:
parent
6ed9a5376b
commit
f6477288e1
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# author: bt3gl
|
||||
|
||||
def max_depth(root: Optional[TreeNode]) -> int:
|
||||
|
||||
if root is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue