Search
⌘K
Get Premium
Leetcode 1476. Subrectangle Queries
Implement a class that stores an m×n integer matrix and supports assigning a given value to every cell in an axis-aligned subrectangle and retrieving the current value of a single cell. The core challenge is efficiently handling repeated rectangular range-assignments with point queries (range-update / point-query pattern), e.g., by applying updates directly or recording updates and resolving them on demand.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.