Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Note what actually matters is how many 0s and 1s are in odd and even positions
For every cyclic shift we need to count how many 0s and 1s are at each parity and convert the minimum between them for each parity