Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
48
:
07
Back to Dashboard
Support Ticket Dispatcher
Medium
A customer support platform assigns incoming tickets to agents to keep workloads balanced. You are given a list of agent names and a list of tickets to assign. Each ticket has a unique integer id and a positive integer effort representing how long it takes to resolve.
Tickets are assigned one at a time in the order provided. For each ticket, assign it to the agent whose current total effort (the sum of efforts for all previously assigned tickets) is the lowest. If multiple agents are tied for the lowest total effort, assign to the agent whose name is lexicographically smallest. ...