Problem 1382 · Medium
Read the values in order, then build a balanced tree by making the middle value of each range the root.
Open the interactive visualisation