package leetcode;

/**
 * https://leetcode.com/problems/remove-k-digits/
 */
public class Problem402 {
    public String removeKdigits(String num, int k) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem402 prob = new Problem402();
        System.out.println(prob.removeKdigits("1432219", 3)); // 1432219
        System.out.println(prob.removeKdigits("10200", 1)); // 200
        System.out.println(prob.removeKdigits("10", 2)); // 0
        System.out.println(prob.removeKdigits("1234", 2)); // 12
        System.out.println(prob.removeKdigits("4321", 2)); // 21
        System.out.println(prob.removeKdigits("31299", 2)); // 129
    }
}

@@ -348,18 +348,155 @@
 )); // 1
-43
+219%0A        System.out.println(prob.removeKdigits(%221432219%22, 4)); // 119%0A        System.out.println(prob.removeKdigits(%221423219%22, 2)); // 1
 2219%0A   

Update problem 402