• + 1 comment

    Nice. Can you explain why the even/oddness of the popcount of n - 1 gives us our answer?