Problems
Contests
Account
Problems
> Flips to Convert > Editorial
Flips to Convert — Solution & Editorial
Back to the Problem
Popcount of A ⊕ B — the XOR marks exactly the differing bits.
Complexity:
O(1)
×
Refer Job