Loading...
By continuing to use the platform, you accept the terms of the Privacy Policy and the use of cookies.
nums and a number target.
The function should return an array with two indices of elements whose sum equals target.
It is guaranteed that there is always exactly one solution.Run your code to see results.
Click the Run button above
nums and a number target.
The function should return an array with two indices of elements whose sum equals target.
It is guaranteed that there is always exactly one solution.