← All problemsSign in

Bridge Crossing

Problem Statement We have N people standing of one side of river and only one boat to cross the river. The rowing time of all the persons is given. A boat can accomodate maximum 2 people at a time and the time of rowing is same is the time of rowing of slower person. Find the minimum total time in which all persons can cross the river. Note that people whose rowing time is less are given by larg

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