How will we pass the exact Node to the function?Do we need to perform search and then will need to pass this to the function?
How to pass the exact Node?
Hi rishabh
All nodes have a reference attached to them via their parent nodes (like pointers) you can put this into a temp node and then pass it.
Also here each node has a reference to its parent node so you can move both up and down the tree (as both reference to parent and child are present at the node)
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.