A template of segment trees

Правка en1, от ouuan, 2019-10-10 10:30:07

Are you bored of writing duplicate codes when solving segment tree problems?

Did you find that segment trees have very little difference from each other?

Do you want a template, which allows you to code only the key parts, the parts different from other segment trees?

Then this template may help.

An example of segment add & multiply, segment query for sum modulo p:

codes

For more information (how to use it), please read README.md on Github.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский ouuan 2019-10-10 17:37:15 43
en2 Английский ouuan 2019-10-10 10:34:11 3
en1 Английский ouuan 2019-10-10 10:30:07 1880 Initial revision (published)