← All problemsSign in

Play It!

*New protagonist. Introducing: Raghu. Age 19, last name and gender unknown. Occupation: student, spends time studying, Youtube and Netflix. Interests: eliminating the world problems like poverty, illiteracy, racism and mortality.* Raghu and Shriram are playing a game for absolutely no reason - given an integer $n$, they have written all the numbers from $1$ to $n$ in a row. Now, while the seque

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