Implement insert, delete and getRandom in O(1).
Unlock detailed company stats for this questionUpgrade
Insert, Delete and getRandom in O(1) Design a data structure supporting insert(value), delete(value) and getRandom() in O(1) time, where getRandom() returns each element with equal probability.
Community answers
No answers contributed by the community yet.
Related questions
Insert Delete GetRandom O(1).Design a data structure that supports insert, delete and getRandom in O(1).Implement an AdService with InsertAd and GetAd APIs.Related courses

Course

Course
Course
