Problem 2398 · Hard

Maximum Number of Robots Within Budget

Slide a window while a monotonic deque tracks the largest charge time and the running total stays within budget.

Open the interactive visualisation