0035. Search Insert Position

Binary search to find target or its insert position in a sorted array

1.0x
Click "Step" or "Play" to begin binary search.

Left

0

Right

3

Mid

-

Target

5

Result

-
Step Log