0702. Search in a Sorted Array of Unknown Size
Description
**Input:** secret = [-1,0,3,5,9,12], target = 9
**Output:** 4
**Explanation:** 9 exists in secret and its index is 4.**Input:** secret = [-1,0,3,5,9,12], target = 2
**Output:** -1
**Explanation:** 2 does not exist in secret so return -1.ac
Last updated