Skip to content

Commit 183ec92

Browse files
authored
Create 22 April Unique Number I (#774)
2 parents 8ee5f00 + 64aaaec commit 183ec92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

22 April Unique Number I

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution {
2+
public:
3+
int findUnique(vector<int> &arr) {
4+
return accumulate(begin(arr),end(arr),0,bit_xor<>());
5+
}
6+
};

0 commit comments

Comments
 (0)