Kumar-laxmi / Algorithms

A Repository for algorithms in C, C++, Python and Java
Apache License 2.0
321 stars 367 forks source link

Adding Lowest Common Ancestor of a Binary Tree (using C, C++, Python) #1210

Closed Maheshmali1 closed 5 months ago

Maheshmali1 commented 1 year ago

Feature to be added : Lowest Common Ancestor of a Binary Tree (using C, C++, Python)

Describe the solution :

The Lowest Common Ancestor (LCA) algorithm is used to find the lowest common ancestor of two nodes in a tree. The lowest common ancestor is the deepest node that is a common ancestor of both given nodes. This algorithm is widely used in various applications, including data structures, graph algorithms, and tree-related problems.

Algorithm flow :

I searched across our algorithms repository but couldn’t find this algorithm and its important Algorithm that we are missing.

Please assign me this issue under SSoC23

Maheshmali1 commented 1 year ago

@Kumar-laxmi Please assign me this issue. Thanks.

Maheshmali1 commented 1 year ago

@Kumar-laxmi Please assign me this issue. Suggest any improvements needed but please respond.

Maheshmali1 commented 1 year ago

@Kumar-laxmi Please respond to this issue.

github-actions[bot] commented 5 months ago

Stale issue message