Amazon Phone screen
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-06-28Added By Anonymous
Source: Link
Company: Amazon
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Adding one here to support the community --
You are given a random number, and a list of numbers (could be repeated). Now use this random number (between 0 and 1), use this number as a probability to get the number from the list without replacement. Next, you have to output unique numbers that are extracted using probability distribution.