Problem 1902 · Medium

Depth of BST Given Insertion Order

Drop each value down a growing search tree, one comparison per level, and track the deepest level any value reaches.

Open the interactive visualisation