AlgoMaster Logo

Balance a Binary Search Tree

tree=[1, null, 2, null, 3, null, 4]
0 / 59
algomaster.io
Step:Start: collect every value, sort it, then rebuild a balanced tree