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