HashMap做法,时间复杂度O(n) public int[] FindNumsAppearOnce (int[] array) { HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); int[] res = new int[2]; int count = 0; for(int i=0;i<array.length;i++){ if(map.get(array[i])!=null){ map.put(array[...