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