Cisco Interview Question

How to calculate the depth of binary tree.

Interview Answers

Anonymous

Oct 8, 2012

DFS

Anonymous

Mar 16, 2013

Coud you please tell after how long from the interview day they sent you the offer ?

Anonymous

Nov 1, 2013

MAX(depth(root->left), depth(root->right))+1;