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