AlgoMaster Logo

Convert BST to Sorted Doubly Linked List

tree=[4, 2, 5, 1, 3]
0 / 29
algomaster.io
Step:nodes = [] (collect the sorted order first)