Mirror
CodeChefOpen on judge ↗
As Ganesh Chaturthi drew near, the town got all excited. There was this young person, Ria, who spotted something cool about numbers in binary. She saw that when you split them down the middle, some numbers looked exactly the same on both sides. Ria thought this was like the balance and harmony that Lord Ganesha represents. How many natural numbers, up to a specified limit(inclusive), have binary
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.
Sign in to chat with the tutor and save your progress.
Sign in to start