LeetCode
Experience
·
Dec 2017
Facebook | Onsite | Randomly generate mines on a grid
41 upvotes
22,031 views
31 replies
Interview Experience
You are given a mn grid. You are asked to generate k mines on this grid randomly. Each cell should have equal probability of k / m of being chosen....
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Matrix
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