Range queries may lower every value in their range by up to some amount. Can they zero the array — and how few of the first queries does it take?
Range queries may lower every value in their range by up to some amount. Can they zero the array — and how few of the first queries does it take?
Opens with the full question.