NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

Lowest Common Ancestor with Binary Lifting

Open SangeetaMishra opened this issue 6 years ago • 2 comments

🚀 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.

SangeetaMishra avatar Aug 19 '20 07:08 SangeetaMishra

Please assign this issue to me for C++ as a part of Hackin Codes @Kajol-Kumari @HarshCasper @atarax665 @SKAUL05

SangeetaMishra avatar Aug 19 '20 07:08 SangeetaMishra

I would like to take this issue in Java for HakinCodes.

ritvij14 avatar Aug 20 '20 20:08 ritvij14