← All problemsSign in

The Time Travel

Shiva learns that P is immortal and must now time travel to 1492BC and win a dance-off to make him a mortal again. After traveling to 1492BC, Shiva finds that P dances only in the special dance floors. All the dance floors are numbered and according to P, a dance floor is special if - The floor number is between the two numbers $L$ and $R$. - The floor number contains all the digits between 1 and

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