import java.util.Stack; public class Solution { private Node head; /** initialize your data structure here. */ public Solution() { head = new Node(0, Integer.MAX_VALUE, null); } public void push(int x) { // 头插法 head = new Node(x, Math.min(x, head.min)...