package com.java.tencent; import java.lang.reflect.Array; import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class T_1_twoSum { /*初级解法*/ public int[] twoSum(int[] nums, int target) { int[] result = new int[2]; for(int i=0