Amazon Phone screen
- Posted
- 28 Jun 2025
Summary
I am sharing my Amazon phone screen experience where I encountered a challenging problem involving extracting unique numbers from a list using a given probability distribution.
How it went
Adding one here to support the community --
Questions asked (1)
- 01
Extract Unique Numbers with Probability Distribution
Data Structures & Algorithms
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 rplacement. Next, you have to output unique numbers that are extracted using probablity distribution.