求大佬为什么retu..求大佬为什么return在这种情况下报错public int[] twoSum(int[] nums, int target) { for (int i = 0; i < nums.len
intS=0; intE=nums.size()-1; while(S<E){ if(v[S].first+v[E].first==target){ return{v[S].second, v[E].second}; } elseif(v[S].first+v[E].first>target){ E--; } else{ S++; } } return{}; } }; Advertisement