Problem 2595 · Easy

Number of Even and Odd Bits

Walk the set bits of n by position and count how many sit at even positions and how many at odd positions.

Open the interactive visualisation