Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#9**.
Example 1
Input: nums = [9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41], target = 29
Output: 10
Constraints
Acceptance: 71% · Topics: binary-search, array
← All practice problems