This is my first time i am studying binary trees, and i see a lot of questions regarding the path traversal, one such question was to find the path of a particular node. This is very easy in a Binary Search Tree, but it's very tough in a normal Binary Tree as the elements in the nodes have no relation between. I came up with many logic but none of them work for all the nodes in the tree. And i would also like to know what is the logic for traversing each and every path from the root to the leaf node.
Thank You.