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