We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ee5f00 + 64aaaec commit 183ec92Copy full SHA for 183ec92
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