class TLD {

    public static ArrayList<Integer> lastInstancesOf(int b, ByteSequence sequence, int repeat) {
        ArrayList<Integer> positions = Lists.newArrayList();
        for (int i = sequence.length() - 1; i >= 0 && positions.size() != repeat; --i) {
            if (sequence.byteAt(i) == b) {
                positions.add(i);
            }
        }
        return positions;
    }

    private  TLD();

}