AlgoMaster Logo

Binary Search Tree Iterator

tree=[7, 3, 15, null, null, 9, 20]
0 / 19
algomaster.io
Step:Start: flatten the whole BST into a sorted array up front