Challenge: Tree Depth
Let’s find the depth of a binary tree using recursion.
Problem
Given a binary tree, find its depth. The depth of the root is 0. The depth of the tree is the number of edges in ...
Let’s find the depth of a binary tree using recursion.
Given a binary tree, find its depth. The depth of the root is 0. The depth of the tree is the number of edges in ...