import java.util.*; import java.util.Stack; public class Solution { Stack<Integer> s1 = new Stack<>(); Stack<Integer> s2 = new Stack<>(); public void push(int node) { s1.push(node); // 这里的重点是s2.peek() >= node,需要将等于当前最小值的值也加入到s2中,这样可以确保与s1中与最小值相等的元...