How do you convert a binary tree to a linked list?
How do you convert a binary tree to a linked list? This can be achieved by traversing the tree in the in-order manner that is, left the child -> root ->right node. Traverse left sub-tree and convert it into the doubly linked list by adding nodes to the end of the list. In this way, […]