面试的内容比较少,无八股文 开门见山是一道算法题,两数之和,自己很快就写出来了,但是不够优雅,面试官让我再思考思考有没有其他的思路。 摘自leetcode public int[] twoSum(int[] nums, int target){ HashMap<Integer, Integer> map = new HashMap<>(); for(int i = 0; i < nums.length; i++){ if(map.contains(target - nums[i])){ ret...