摘要:
1 public class Solution { 2 public int[] twoSum(int[] numbers, int target) { 3 HashMap visited = new HashMap(); 4 int[] result = new int[2]; 5 for(int i = 0; i < numbers.length; i++){ 6 int tmp = target - numbers[i]; 7 if(visited.containsKey(tmp))... 阅读全文
posted @ 2013-11-30 14:29
JasonChang
阅读(138)
评论(0)
推荐(0)
浙公网安备 33010602011771号