← All problemsSign in

Prakash and his adventure

Prakash loves adventures. Once he came across a straight river. It was an ordinary river of width W. He wanted to make it interesting. So, he challenged himself to reach a point on other side of the river and D distance downwards from the point he stands now. He can swim at the speed of S kmph and run at the speed of R kmph. He can reach any point X on the other side of the river by swimming and t

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