轻量 Load Balancer

Design a lightweight load balancer with the following features: 1. Maintain a worker state machine represented by a priority queue to track worker load status; 2. Support dynamic scaling up and down o...

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: