LeetCode Question · Aug 2020

FaceBook | Phone | Container Support Insert & Pop

578 views 3 replies

Question Details

Design an appropriate data strcuture that accpets following to APIs: void Insert(Object obj, float weight) Object RandomPop() Insert an object with weight, and randomly pops out an object, with the probability proportional to...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

System Design Probability Stats