//=>[5,10]twoSum([1,2,3,4,5,6,7,8,9,10],15);//=>nulltwoSum([1,2,3,4,5,6,7,8,9,10],150);返...
排序之后使用双指针letar=[5,12,6,3,9,2,1,7];functiongetthreenum(arr,target,result=[]){arr=arr.sort((a,...
//=>[5,10]twoSum([1,2,3,4,5,6,7,8,9,10],15);//=>nulltwoSum([1,2,3,4,5,6,7,8,9,10],150);返...
排序之后使用双指针letar=[5,12,6,3,9,2,1,7];functiongetthreenum(arr,target,result=[]){arr=arr.sort((a,...