Update find_max_depth_tree.py

This commit is contained in:
bt3gl 2023-07-30 15:52:19 -07:00 committed by GitHub
parent 6ed9a5376b
commit f6477288e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: bt3gl
def max_depth(root: Optional[TreeNode]) -> int: def max_depth(root: Optional[TreeNode]) -> int:
if root is None: if root is None: