import java.util.*; public class Solution { HashMap<Integer,Integer> map=new HashMap<>(); List<Integer> res=new ArrayList<>(); public int[] solve (int[] xianxu, int[] zhongxu) { for(int i=0;i<zhongxu.length;i++){ map.put(zhongxu[i],i); ...