AlgoMaster Logo

Convert Sorted Array to Binary Search Tree

nums=[-10, -3, 0, 5, 9]
0 / 33
nums-100-31025394mid becomes the root, halves become subtrees
algomaster.io
Step:Start: build a height-balanced BST from the sorted array