← All problemsSign in

Yet Another 2-Bit Problem

It is finally the year 2022! Bob is really excited since he really likes the number two. Bob also loves binary numbers. He thinks a number is $kewl$ if it has exactly two zeros in it's binary representation. For example, he thinks the number $4$ is $kewl$, since it's binary representation is $100$, which has two zeros. Other examples of $kewl$ numbers are $6,9,10$. The number $8$ is not $kewl$, si

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start