class Solution { public: int GetNumberOfK(vector<int> data ,int k) { //左边界 和 右边界 int lbound = 0,rbound = 0; int l = 0,r = data.size(); // 二分法找左边界,要求左边的值小于k,右边的值>=k while(l<r){ int mid = (l+r)/2; if(data[mid] < k) l = mid...