Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#31**.
Example 1
Input: nums = [31,33,35,37,39,41,43,45,47], target = 37
Output: 3
Constraints
Acceptance: 76% · Topics: binary-search, array
← All practice problems