SRM...
SRM...
全部文章
题解
归档
标签
去牛客网
登录
/
注册
SRM...的博客
全部文章
/ 题解
(共2篇)
题解 | #旋转数组的最小数字#
public: int minNumberInRotateArray(vector<int> rotateArray) { int l=0,r=rotateArray.size()-1; while(l<=r){ in...
C++
二分查找
2022-01-31
0
361
题解 | #数字在升序数组中出现的次数#
public: int GetNumberOfK(vector<int> data ,int k) { //upper_bound(data.begin(),data.end(), k)返回大于k的第一个数的位置 //lower_bound(dat...
C++
二分查找
2022-01-31
0
237