Amazon Phone screen

amazon logo
amazon
June 28, 20256 reads

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.

Full Experience

Adding one here to support the community --

Interview Questions (1)

Q1
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.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!