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
More from Meta
Reddit
Leetcode is cooked in 2026 and we don't hire people who only grind leetcode.
Reddit
Returning to SWE work after 3 years of cancer treatment
Reddit
2026 New Grad Recap
Reddit
Most likely failed meta phone screen
Reddit
Targeting OpenAI SWE Roles? Insights on what to expect from recent system design loops