Problem 2418 · Easy

Sort the People

Pair each name with its height and repeatedly take the tallest remaining person.

Open the interactive visualisation