Closed vincenzopalazzo closed 3 years ago
The idea is to append the value to the lazy array, for instance lazy[pos] += value
, and only when I will call the query function, I need to propagate the value.
In this case, I have a problem where I can propagate the value, and maybe my idea is not very good.
The idea to make this experiment in my free time is to store the range in addition to the value to be able to propagate the update in the query time and not in the update time.
Wrong consideration
I would like to test some improvement in the lazy propagation of the segment tree