public class Solution { public int GetNumberOfK(int [] array, int k) { return binSearch(array, k + 0.5) - binSearch(array, k - 0.5); } private int binSearch(int[] array, double v) { int right = array.length - 1; int left = 0; while (left <= right) {...