Back to QuestionsPractice with This Question
Flatten Binary Tree to Linked List
83.3K views•Asked 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.