Search `target` in sorted ascending `nums`. Return index or `-1`. Variant **#3**.
Example 1
Input: nums = [3,5,7,9,11,13,15,17,19,21,23], target = 21
Output: 9
Constraints
Acceptance: 65% · Topics: binary-search, array
← All practice problems