Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#30**.
Example 1
Input: nums = [30,32,34,36,38,40,42,44], target = 34
Output: 2
Constraints
Acceptance: 75% · Topics: binary-search, array
← All practice problems