We are given an array of integers, nums, sorted in ascending order, and an integer value, target. If the target exists in the array, return its index. If the target does not exist, return -1.
Constraints:
nums.length
nums[i] , target
All integers in nums are unique.
nums is sorted in ascending order.
We are given an array of integers, nums, sorted in ascending order, and an integer value, target. If the target exists in the array, return its index. If the target does not exist, return -1.
Constraints:
nums.length
nums[i] , target
All integers in nums are unique.
nums is sorted in ascending order.