AlgoMaster Logo

Flatten Binary Tree to Linked List

tree=[1, 2, 5, 3, 4, null, 6]
0 / 22
algomaster.io
Step:Start: flatten the tree into a right-only chain in preorder order