Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#41**.
Example 1
Input: nums = [41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77], target = 59
Output: 9
Constraints
Acceptance: 69% · Topics: binary-search, array
← All practice problems