Flatten a binary tree to a linked list
Flatten a binary tree in place into a chain that follows pre-order, using the right pointers as next and setting every left pointer to null.
No answer yet. Write the first one; the best answer gets endorsed.
Flatten a binary tree in place into a chain that follows pre-order, using the right pointers as next and setting every left pointer to null.