Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#37**.
Example 1
Input: nums = [37,39,41,43,45,47,49,51,53,55,57,59,61,63,65], target = 49
Output: 6
Constraints
Acceptance: 65% · Topics: binary-search, array
← All practice problems