Weighted Round-Robin Seller Task Scheduler

Implement a task scheduler that receives tasks and returns the next task to process.

Each task contains:

  • task_id: a string task ID
  • seller_id: a string seller ID
  • tier: either VIP or `ST...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: