← All problemsSign in

AMAZON RIVER AND CROCODILE

A ship wrecked sailor is stranded in the middle of the Amazon river. He has to swim his way downstream to his friend’s nearby boat before he is attacked by ferocious crocodiles. His starting point (marked as $A$) and his friend’s boat ( marked as $B$) is separated by a stretch of river infested with crocodiles. Assume the position of crocodiles is stationary and the range of view of each crocodile

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