Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#5**.
Example 1
Input: nums = [5,7,9,11,13,15,17,19,21,23,25,27,29], target = 9
Output: 2
Constraints
Acceptance: 67% · Topics: binary-search, array
← All practice problems