# Single Number (Leetcode 136)

Problem Link: <https://leetcode.com/problems/single-number/>

```python
class Solution:
    def singleNumber(self, nums: List[int]) -> int:
        
        xor=0
        for i in nums:
            xor=xor^i
        return xor
        
```
