sam-tripathi / Defeat-JAVA

It is a repositry consisting of java tutorials,projects, Data Structures and Algorithm, Roadmap Questions and Problems with Solution . Building a FREE Resources for java learners
17 stars 61 forks source link

Print nodes at the distance K from node(Given Target node) #140

Closed kfayazuddin closed 1 year ago

kfayazuddin commented 1 year ago

I want to add this Question to Binary Tree Folder. It is very important question as per interviews and most of people get stuck while solving Question :: In given tree we have to give target node in the tree and as output we have to print all the nodes at the distance K from the target node

we have to traverse in upward direction as well as downward direction of BinaryTree.

kfayazuddin commented 1 year ago

Thanks for assigning.

kfayazuddin commented 1 year ago

Hi i haved solved this issue Please close from your end Thank you : )