bit operation AND
问题 It is a leetcode problem. Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. For example: Given nums = [1, 2, 1, 3, 2, 5], return [3, 5]. My code is: class Solution { public: vector<int> singleNumber(vector<int>& nums) { int axorb=0; for(auto i:nums) axorb=axorb^i; int differbit=(axorb&(axorb-1))^axorb; int group3=0, group5=0; for(auto i:nums) if(differbit&i!=0) group5