"You may assume that each input would have exactly one solution" Does this mean there is no duplicate in array?
There could be duplicate in array but duplicate element can't be the return answer. Otherwise there will have many possibility of the return index.
That is my understanding, hope you can accept.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.