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