Search space
Mid pointer
Found
Eliminated

Controls

Time: O(log n) | Space: O(1)

Steps

0 steps

Press Run to trace the algorithm one step at a time.