Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Simulate a round-robin package distribution system across multiple fulfillment centers.
Handle dynamic center closures and capacity resets when no center can accept a package.
Track total packages per center and return the index of the busiest one, breaking ties by largest index.
What This Tests
Array simulation and state management
Pointer tracking with cyclic iteration
Edge case handling and reset logic
Linear scanning and cumulative counting
Common Patterns
Simulation
Array Manipulation
Two Pointers
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected