35.搜索插入位置

int searchInsert(int* nums, int numsSize, int target){ int i; for(i=0;i<numsSize;i++) if(nums[i]>=target) break; return i; }
相關文章
相關標籤/搜索