Thread-Safe Lottery System
Design and implement a thread-safe lottery system that supports adding/removing users with equal weights and selecting random winners. The system must handle concurrent operations safely across multiple threads.
Asked at:
Apple
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late February, 2026
Apple
Mid-level
Create a thread safe lottery system with equal weights for all users. It should allow adding and removing users and picking a random winner.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.