@@ -0,0 +1,898 @@
+public class MinStack %7B%0A    %0A    Stack%3CInteger%3E data;%0A    Stack%3CInteger%3E min;%0A    %0A    public MinStack() %7B%0A        // do intialization if necessary%0A        data = new Stack();%0A        min = new Stack%3C%3E();%0A    %7D%0A%0A    /*%0A     * @param number: An integer%0A     * @return: nothing%0A     */%0A    public void push(int number) %7B%0A        // write your code here%0A        data.push(number);%0A        if (min.isEmpty()) %7B%0A            min.push(number);%0A        %7D else %7B%0A            if (min.peek() %3E number) %7B%0A                min.push(number);%0A            %7D else %7B%0A                min.push(min.peek());%0A            %7D%0A        %7D%0A    %7D%0A%0A    /*%0A     * @return: An integer%0A     */%0A    public int pop() %7B%0A        // write your code here%0A        min.pop();%0A        return data.pop();%0A    %7D%0A%0A    /*%0A     * @return: An integer%0A     */%0A    public int min() %7B%0A        // write your code here%0A        return min.peek();%0A    %7D%0A%7D

add 12