How Many Trees Can You Get from an Acre of Wood?
Looking into How Many Trees Can You Get from an Acre of Wood? Read the latest insights supported by reliable sources.
max_depth = max(max dept of left subtree, max depth of right subtree) + 1 (d) Return max_depth. See the below diagram for more clarity about execution of the recursive function maxDepth() for above example tree.