Hi! I need some ideas for the following problem.
Given an initial array of zeros and target array, and operation of adding 1 to range [l, r]. Find the minimum number of steps to reach the target array.
Thanks!
Minimum range add operations to get target array
Hi! I need some ideas for the following problem.
Given an initial array of zeros and target array, and operation of adding 1 to range [l, r]. Find the minimum number of steps to reach the target array.
Thanks!
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en2 |
![]() |
kazuma_desu | 2017-08-07 09:40:48 | 60 | ||
en1 |
![]() |
kazuma_desu | 2017-08-07 09:03:55 | 263 | Initial revision (published) |