We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Location: Binary tree page 10. Current solution is inefficient. Need to add more efficient algorithm.
The text was updated successfully, but these errors were encountered:
Similar to https://www.geeksforgeeks.org/lowest-common-ancestor-binary-tree-set-1/ but the explanation of it is weak. But it returns is not direct LCA - what the recursive function returns is actually the subtree root that containing the at least one of the nodes.
Sorry, something went wrong.
No branches or pull requests
Location: Binary tree page 10. Current solution is inefficient. Need to add more efficient algorithm.
The text was updated successfully, but these errors were encountered: