Skip to content
RED SAG Skills
medium10 pts · first answer countshash-mapdesign

Insert, delete and get random in O(1)

A structure must support insert, remove and getRandom, all in O(1) average time. What is the standard design?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions