Blog on algorithms, puzzles, programming .... musings of a computer engineer.
size_t MaxDepth(Node *root){ if(root) { return max( MaxDepth(root->left) , MaxDepth(root->right) ) + 1; } return 0;}
Post a Comment
No comments:
Post a Comment