Problem 1052 · Medium

Grumpy Bookstore Owner

Use a fixed-length window to recover customers during the owner's grumpy minutes and maximize the number satisfied. The window slides across the day and tracks the gain it adds.

Open the interactive visualisation