Skip to main content

Practice · 1 of 4

Range Add, Range Min

CHALLENGE
Difficulty: advanced+25 XP

**Bài toán.** n numbers, q operations: 1 l r v adds v to [l, r]; 2 l r prints min over [l, r]. **Constraints:** 1 ≤ n, q ≤ 2·10^5; |v| ≤ 10^9; |a[i]| ≤ 10^9.

Back to lesson: Practice: Lazy Tree Drills