Microsoft Interview Question

Given a Tree data structure, find the depth of the tree

Interview Answers

Anonymous

Sep 30, 2018

Traverse the tree.

Anonymous

Sep 21, 2019

Compare the right node and left node choose the maximum one add 1 return