Skip to content

Conversation

@shivamg-git
Copy link
Contributor

the solution is using factorial Arithmatics.


return depth(A);

if(A==NULL) return INT_MAX;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gives a wrong answer for an empty tree (depth should be 0, instead gives INT_MAX);

@ultrathlete ultrathlete merged commit d848907 into royalpranjal:master Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants