Well, my out put is
[2,4] and that
2+4 = 6 which is the target number
However, the expected result is
2+3 = 5 not target number.
Hope admin looks at this testing case because my answer keeps rejected.
the problem is:"The function twoSum should return indices of the two numbers such that they add up to the target", focus at "indices"
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.