InterviewDB Question

Patreon SWE Phone - Random Generator

Question Details

Problem Design a random number generator with a specified probability distribution, possibly using rejection sampling or weighted random selection. Likely LeetCode equivalent LeetCode 528 - Random Pick with Weight. Tags probability,math,design,swe

Full Details

🔒

Unlock all Patreon questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a patreon interview during the phone round.

It covers the following topics: Coding, Mle, Phone .