public int q(int t) {
        Integer r = votes.get(t);
        return r != null ? r : votes.get(times[Arrays.binarySearch(times, t) * -1 - 2]);
    }
Why Did you create this class? what does it do?
src/problems/medium/TopVotedCandidate.java