Range Addition
Medium
Prefix Sum & Range Queries
Start with an array of n zeros. Apply updates (l, r, v) that add v to every element in [l, r]. Print the final array.
Constraints
1 <= n <= 10^5 0 <= u <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.