Problem 35 · Easy

Search Insert Position

Find the index where a target would sit in a sorted list, either at an existing value or at the spot that keeps the order. The visual shrinks a binary-search range until the insertion point is fixed.

Open the interactive visualisation