Problem 1382 · Medium

Balance a Binary Search Tree

Read the values in order, then build a balanced tree by making the middle value of each range the root.

Open the interactive visualisation