def singleNumber(self, A):
return (3*sum(set(A)) - sum(A))/2
Your answer is short but it uses O(N) memory , the problem asks if you can implement the solution without using extra memory
Python is interesting, ha!~
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.