Problems > Mirror the Bits > Editorial

Mirror the Bits — Solution & Editorial

Back to the Problem

Peel bits from one side and push them onto the other, 32 times (or use the divide-and-conquer mask swap).

Complexity: O(32)