Range Sum Query: Immutable then Mutable (with updates)
Asked at Moloco · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026
You need to implement the logic for these operations; assume the caller will invoke `update` and `sumRange` multiple times.
Loading the problem…
More Moloco interview questions
- Score a Balanced Parentheses String
- Aggregate Ad Click Logs with Lexicographic User Range Queries
- Collapse Adjacent Repeated Characters (Pairs and Groups of k)
- Implement a Concurrency-safe FIFO Queue
- Longest Common Prefix from Two Arrays
- Subarray Maximum Element Length