Back to QuestionsPractice with This Question
Flatten Binary Tree to Linked List (In-place)
88.6K views•Asked at Amazon•
Medium
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
Practice answering orally or with text to get instant AI feedback.