[CodeSignal] Round-Robin Package Dispatcher
A logistics platform assigns packages to processing stations in round-robin order. You are given stationCapacity (max packages each station can handle) and an operation log dailyLog where each entry is either "PACKAGE" (assign one package) or "CLOSE i" (permanently close station i, 0-indexed).
Packages are assigned starting from station 0 in round-robin order. When assigning a package, skip stations that are closed or already at capacity. If a complete round through all non-closed stations finds no available station (all are full), a reset occurs: all non-closed stations have their load cleared to 0, and assignment restarts from station 0. Closed stations remain closed after a reset. ...
More Capital One interview questions
- [CodeSignal] Battery Rotation Schedulerhard
- Simplified Inventory Trackermedium
- Reach Corner in Grid With Teleportsmedium
- Even Position Monotonicityeasy
- Array Sum Pairs and Updatesmedium
- Rightmost Longest Character Runeasy
- [CodeSignal] Grid Arithmetic Pathhard
- [CodeSignal] Cyclic Consonant Shifteasy
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.