Implement Round-Robin and Consistent-Hashing Load Balancers

Implement a load balancer that supports dynamic backend membership and provides both round-robin and consistent-hashing routing.

To make the task self-contained, use the following interface a...

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: