avinash201199 / DSA-Questions

Collection of data structure and algorithms questions
https://www.instagram.com/lets__code/
MIT License
75 stars 171 forks source link

Lowest Common Ancestor of Binary Tree #353

Open saket349 opened 3 years ago

saket349 commented 3 years ago

Hi, I m participating in hacktoberfest '21. I want to add a solution to a problem which goes as: - Question: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.

Example: Input: root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 1 Output: 3 Explanation: The LCA of nodes 5 and 1 is 3.

So please kindly assign this to me for hacktoberfest '21

esheetaparulekar commented 3 years ago

Hello, can I work on this issue in Java?

avinash201199 commented 3 years ago

Hello, can I work on this issue in Java?

Go ahead :)

avinash201199 commented 3 years ago

They are not considering dsa,cp,algorithm repository :( all the pr will not be considered in hacktoberfest but your contribution will be for lifetime, this will help many students to practice dsa . Thank you for your contribution :) you can contribute to other repo