You are viewing a single comment's thread. Return to all comments →
The solution to the problem is by summing xor values;
return std::accumulate(a.begin(), a.end(), 0, std::bit_xor<int>{});
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
The solution to the problem is by summing xor values;