136. Single Number
All prompts are owned by LeetCode. To view the prompt, click the title link above.
First completed : July 03, 2024
Last updated : July 03, 2024
Related Topics : Array, Bit Manipulation
Acceptance Rate : 75.39 %
class Solution:
def singleNumber(self, nums: List[int]) -> int:
xored = 0
for num in nums :
xored ^= num
return xored