Available question text
Design a data structure that supports point updates and returns the sum of any submatrix in a 2D matrix, optimizing for many interleaved update and sumRegion operations. Expect to use a dynamic 2D structure (e.g., 2D BIT or 2D segment tree) to achieve much better than O(mn) per operation — typically logarithmic time per update/query.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Moloco
Leetcode 308. Range Sum Query 2D - Mutable
Reported Oct 1, 2025 · 1 source report
STAFF
Source snapshot: Nov 12, 2026
View source