We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee5f00 commit 64aaaecCopy full SHA for 64aaaec
22 April Unique Number I
@@ -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