Update and rename find_max_depth_tree.py to bt_find_max_depth.py

This commit is contained in:
marina 2023-08-03 13:16:41 -07:00 committed by GitHub
parent e0d9624032
commit a0b0090f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# author: bt3gl
def max_depth(root: Optional[TreeNode]) -> int:
def max_depth(root: Optional[Node]) -> int:
if root is None:
return 0