Guest User

Untitled

a guest
May 28th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. class Solution {
  2. public:
  3. int singleNumber(vector<int>& nums) {
  4. return accumulate(nums.begin(), nums.end(), 0, bit_xor<int>());
  5. }
  6. };
Add Comment
Please, Sign In to add comment