int search(int* nums, int numsLen, int target ) {
// write code here
int start=0;
int end= numsLen-1;
while(start<=end)
{
int mid=(start+end)/2;
if(nums[mid]==target)
{
while(nums[mid-1]==nums[mid])
mid--;
return mid;
}
if(nums[mid]<target)
start=mid+1;
else
end=mid-1;
}
return -1;
}
04-26
611
05-13
1101
08-04
190