Problem 851 · Medium

Loud and Rich

Memoized DFS over the richer-than graph to find the quietest person at least as rich as each person.

Open the interactive visualisation