import java.util.ArrayList; import java.util.HashMap; public class Solution { public boolean IsPopOrder(int [] pushA,int [] popA) { HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); for(int i = 0; i < pushA.length; i++) map.put(pushA[i], i); ...