← All problemsSign in

River! River! Take Me Home

Chef has gone out camping. One day while coming back to his tent he lost his way. While searching for the way back he encountered THREE SUPERNATURAL RIVERS,out of which only one can take him back to his tent. Each river has rocks besides it with numbers on it starting from 1,3 and 9 respectively. The next rock in the series has number as the previous number plus the sum of digits of previous nu

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