Given a sorted array `nums` and `target`, return the index of `target` or `-1` if not found.
DrawCode Practice Problem
Binary Search
Interactive Visualizer Workspace
Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.
Launch Interactive Visualizer