Flatten Binary Tree to Linked List
Medium
Tree Traversals (Advanced)
Flatten a binary tree in place so that it becomes a right-skewed 'linked list' following preorder order. Print the values from the root along the right pointers.
Constraints
0 <= number of nodes <= 2000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.