@@ -0,0 +1,1228 @@
+package problems.problems2%0A%0Aclass CarlosImp implements ExamMarks%7B%0A    /**%0A     * Return number of marks greater than a mark in marks array.%0A     *%0A     * @param h All mark's exam, h is ordered h%5Bi%5D %3C= h%5Bi+1%5D%0A     * @param mark a mark exam%0A     * @return number of marks greater than a one mark%0A     */%0A    int numberOfMarks(int%5B%5D h, int mark)%7B%0A        return numberOfMarks(h, mark, 0, h.length-1);%0A    %7D%0A    %0A    int numberOfMarks(int%5B%5D h, int mark, int start, int end)%7B%0A        if (start %3C= end) %7B%0A            int half = (start + end)/2;%0A            if (v%5Bhalf%5D %3E mark) %7B%0A                int i = half -1;%0A                for (; i %3C ini; i--)%0A                    if (v%5Bi%5D %3C= mark) break;%0A                return end + 1 - i +1;%0A            %7D else%0A                return numberOfMarks(h, mark, half+1, end);%0A        %7D%0A        return 0;%0A    %7D%0A    %0A    int numberOfMarks(int%5B%5D h, int mark, int start, int end)%7B%0A        if (start %3C= end) %7B%0A            int half = (start + end)/2;%0A            if (v%5Bhalf%5D %3E mark) %7B%0A                return 1 + numberOfMarks(h, mark, start, half-1) + numberOfMarks(h, mark, half+1, end);%0A            %7D else%0A                return numberOfMarks(h, mark, half+1, end);%0A        %7D%0A        return 0;%0A    %7D%0A%7D%0A

Create CarlosImp.java