Oops, I am not supposed to post the exact code LOL :D.
Type: Posts; User: phamminh91
Oops, I am not supposed to post the exact code LOL :D.
Here is my code: :cool:
- First you need to find the depth/height of the tree.
- Then traverses through each node, find the current depth and compare it with the maxDepth.
- If condition...