class Solution { public: int GetNumberOfK(vector<int> data ,int k) { if (data.size() == 0) return 0; int l = 0, r = data.size() - 1, mid = 0; int left = 0, right = 0; while (l < r) { mid = l + r >> 1; if (data[mid] < k) { ...