Search
⌘K

Leetcode 2595. Number of Even and Odd Bits

Count the 1-bits in n's binary representation at even and odd indices (indices numbered from 0 at the least significant bit) and return [even_count, odd_count].


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.