NeoAlgo
NeoAlgo copied to clipboard
Lowest Common Ancestor with Binary Lifting
🚀 Feature
You are given a tree G and queries of the form (v1,v2). For each query, you need to find the lowest common ancestor, i.e. a vertex v that lies on the path from the root to v1 and the path from the root to v2, and the vertex should be the lowest.
Have you read the Contributing Guidelines on Pull Requests?
Yes.
Motivation
As it has not been added in any issue in Hakin Codes.
Pitch
A common algorithm of trees.
Please assign this issue to me for C++ as a part of Hackin Codes @Kajol-Kumari @HarshCasper @atarax665 @SKAUL05
I would like to take this issue in Java for HakinCodes.