Single Number II Time : Space : 123456789int Solution::singleNumber(const vector<int> &A) { int a = 0, b = 0; for(auto n : A) { a = ~b & (a ^ n); b = ~a & (b ^ n); } return a;}