Addition on a segment(Segment tree)

Revision en1, by jaguar1996, 2017-04-23 18:05:51

Hi everybody!

I am solving problem that need addition on a segment and getting sum and minimum on a segment. I have some problem with lazy propagation.

Can you share your code with Segment tree. Preferably recursively)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English jaguar1996 2017-04-23 18:05:51 259 Initial revision for English translation
ru1 Russian jaguar1996 2017-04-23 17:45:41 272 Первая редакция (опубликовано)