Update bt_find_max_depth.py

This commit is contained in:
bt3gl 2023-08-08 13:42:15 -07:00 committed by GitHub
parent b5c71cf3d5
commit 91cd6134b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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