LeetCode Question · May 2022 · Los Angeles

Amazon | Phone | Map implementation with equal probability randomizer

3 upvotes 799 views 2 replies

Question Details

Implement the following APIs public Object get(key) public void put(key, object) public void delete(key) public Object random() The first three are straight forward implementation of hashmap while the last one had a tricky condition to...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Hash Table Arrays Probability Stats