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