InterviewDB Question

Get Across River: Find Minimum Time for a Group to Cross a River Using a Boat with Limited Capacity

Question Details

Problem A group of people must cross a river using a single boat that holds at most 2 people. Each person has a crossing time; when 2 cross together, they move at the slower person's speed. The boat must be rowed back by someone. Find the minimum tot…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone