ns0's blog

By ns0, history, 2 weeks ago, In English

Hi, I know that we can make lazy modification and also lazy set (setting each element between [l, r] to x). But I wonder if we can do both, I mean there will be 3 queries and one is for modification, one is for setting and one is for getting sum/min/max. If yes, I wonder if we can do it with iterative way?

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it