Amazon Interview Question

Design and code data structure for load balancer to pick randomly between servers.

Interview Answer

Anonymous

Dec 12, 2016

Surprisingly to me the answer was constant add(server) and constant remove(server). I struggled a lot because I expected to apply directly one of the existing Java data structures, but the final answer was a bit more complicated.

Amazon Interview Question: Design and code data structure for load balancer to pick randomly between servers. | Glassdoor