:type nums: List[int] :rtype: int
(self, nums)
| 31 | |
| 32 | class Solution(object): |
| 33 | def singleNumber(self, nums): |
| 34 | """ |
| 35 | :type nums: List[int] |
| 36 | :rtype: int |
| 37 | """ |
| 38 | |
| 39 | for i in range(1, len(nums)): |
| 40 | nums[i] = nums[i] ^ nums[i-1] |
| 41 | |
| 42 | return nums[-1] |
| 43 |
nothing calls this directly
no outgoing calls
no test coverage detected