BloombergCoding·60 minMembers
Lottery System / Insert Delete GetRandom O(1)
Members only
Design a data structure for a lottery that supports adding a participant, removing a participant, and randomly picking a winner — all in O(1). Appears framed both as the classic LeetCode problem and a...
SWE
data-structure
hashmap
array
sampling
medium
Frequency
Low
Last asked
2026-01-22
Stage
phone-screen · onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
