Back to Question

Flatten Binary Tree to Linked List

Question Explain

Given the root of a binary tree, flatten the tree into a 'linked list' in-place. The 'linked list' should use the right child pointers, and the left child pointers should always be `NULL`.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.