Back to Question

Flatten Binary Tree to Linked List (In-place)

Question Explain

Flatten a binary tree into a single singly linked list in-place. The list should use the right pointer and the order should be the same as preorder traversal.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.