Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.

Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).

i am not my code got accepted will fail in this case. or have i read the question carefully enough?

You may assume that each input would have exactly one solution.

Your test case will have 2 solutions.

no, for the case that num={2,2,3,5} and target =4, there exists only one solution.

Are you assuming that the target is 5 or 7? That would have two solutions. Target 4 would only be 1,2.

this case's answer is 1 2, What is your answer.

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.