← ALL NOTES
Array

3356. Zero Array Transformation II

Given an array nums and queries [l, r, val]: a query decrements each element on [l, r] by up to val (possibly less). Find the minimum number k of the first queries after which the array can be…

Loading…