def findDuplicate(self, nums):
:type nums: List[int]
for i in xrange(len(nums)):
if nums[abs(nums[i])] >= 0:
nums[abs(nums[i])] = -nums[abs(nums[i])]
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.