Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#6**.
Example 1
Input: nums = [6,8,10,12,14,16,18,20,22,24,26,28,30,32], target = 14
Output: 4
Constraints
Acceptance: 68% · Topics: binary-search, array
← All practice problems