Range Sum Query - Mutable
Medium
Prefix Sum & Range Queries
Support two operations on an integer array: update i v (set nums[i] = v) and sum l r (sum of indices l..r inclusive). Print the result of every sum operation.
Constraints
1 <= n <= 3 * 10^4 1 <= q <= 3 * 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.