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