Skip to content

Commit 8568581

Browse files
[CPP] 136. Single Number
1 parent 933ca4a commit 8568581

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cpp/136-Single-Number.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution {
2+
public:
3+
int swap(int& a, int& b) {
4+
a = a^b;
5+
b = a^a;
6+
}
7+
};

0 commit comments

Comments
 (0)