Implement a Consistent Hashing Ring

Task

Implement a consistent hashing ring that supports adding nodes, removing nodes, and looking up the owner of a request.

The post only states that the candidate implemented a consistent hashing...

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: