Skip to content

Commit c95eaab

Browse files
Create Single Number.py
1 parent 3b3aa48 commit c95eaab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: Arrays/Easy/Single Number.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution:
2+
def singleNumber(self, nums: List[int]) -> int:
3+
a = 0
4+
for i in nums:
5+
a ^= i
6+
return a

0 commit comments

Comments
 (0)