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