Back to Questions

Flatten Binary Tree to Linked List

83.3K viewsAsked at Google
Medium

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

Practice answering orally or with text to get instant AI feedback.

Practice with This Question