N people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. The have one torch and, because it's night, the torch has to be used when crossing the bridge. Each person takes a variable amount of time to cross.
When two people cross the bridge together, they must move at the slower person's pace.
The question is, how fast can you get N people across the bridge?
(Found via ).