def removeDuplicates(self, nums):
I'm wondering why python gives me this wrong answers.
I faced the same problem. I found out that I had to modify nums. But nums = set(nums) still did not give me a right answer. Anyway, you need to modify nums.
nums = set(nums)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.