Skip to content

Commit 6411029

Browse files
Update single_number.cpp
1 parent d0e7082 commit 6411029

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

single_number.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
class Solution:
2-
int singleNumber(vector<int> &nums):
2+
int singleNumber(vector<int> &nums){
33
int x = 0;
44
for(auto num : nums) x ^= num;
55
return x;
6+
}
7+
};

0 commit comments

Comments
 (0)