Problem 881 · Medium

Boats to Save People

Pair people by weight so each boat carries at most two people within the weight limit, using the fewest boats. The visual pairs the heaviest and lightest people at the two ends of a sorted line.

Open the interactive visualisation