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