Problem 826 · Medium

Most Profit Assigning Work

Sort jobs and workers, then sweep one pointer while tracking the best profit any worker can reach.

Open the interactive visualisation