Tree: Depth-First Search - Flatten Binary Tree to Linked List
Consider the optimal flatten function using reverse preorder traversal with a global pointer. What is the output linked list when the input tree is a single node with value 42?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions