LeetCode
Question
·
May 2018
Facebook interview question - Range sum query 2d (immutable)
6 upvotes
2,281 views
4 replies
Question Details
Given a large rectangular 2D grid of arbitrarily placed 1\'s and 0\'s, write a service that answers the query "how many 1\'s in a given subgrid?" Assume that the grid is...
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Matrix
Sql
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