NeetCode #163LC-308MediumArrays & Hashing
← Back to All Problems

#163 · #308 · Range Sum Query 2D - Mutable(二维区域和检索 - 可变)

📌 Problem Statement & Constraints

Design a class supporting update(row, col, val) and sumRegion(row1, col1, row2, col2) on a 2D matrix. Constraints: 1 <= m, n <= 200; up to 10^4 calls.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!