Amazon Phone screen

Anonymous User
412
Jun 28, 2025

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 rplacement. Next, you have to output unique numbers that are extracted using probablity distribution.

Comments (2)