← All problemsSign in

Help Bob!

Bob has started solving questions on Bit Manipulation. He has set his target to solve 5 questions daily. But, he has to go to his best friend's birthday party or else his best friend would get angry on him. He has finished solving 4 questions but he is getting late for the birthday party but he also has to accomplish his target. So, he asks for your help in completing his target. Can you help him?

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