用一个栈模拟: public class Solution { public boolean IsPopOrder(int [] pushA,int [] popA) { Stack<Integer> s = new Stack(); int i = 0 , j = 0; while(i < pushA.length){ if(pushA[i] == popA[j]){ i++; j++; while(!...