@@ -0,0 +1,635 @@
+public class Solution %7B%0A    /**%0A     * @param A: A positive integer which has N digits, A is a string%0A     * @param k: Remove k digits%0A     * @return: A string%0A     */%0A    public String DeleteDigits(String A, int k) %7B%0A        // write your code here%0A        StringBuffer s = new StringBuffer(A);%0A        %0A        int i, j;%0A        for (i = 0; i %3C k; i++) %7B%0A            for (j = 0; j %3C s.length() - 1 && s.charAt(j) %3C= s.charAt(j + 1); j ++) %7B%7D%0A            s.deleteCharAt(j);%0A        %7D%0A        %0A        while (s.length() %3E 1 && s.charAt(0) == '0') %7B%0A            s.deleteCharAt(0);%0A        %7D%0A        %0A        return s.toString();%0A    %7D%0A%7D

add 182