cheran-senthil / PyRival

⚡ Competitive Programming Library
https://pyrival.readthedocs.io/
Apache License 2.0
1.17k stars 312 forks source link

Making lazy segment tree update query more dynamic #70

Closed mohinesh9999 closed 2 years ago

mohinesh9999 commented 2 years ago

For now lazy segment tree update is only support adding a particular value over a range. But this can be made dynamic by introducing an update function ( for multiplication, xor, and many more operations)same like we have support for query (func=max function).

mohinesh9999 commented 2 years ago

Can you assign me this issue?

cheran-senthil commented 2 years ago

Passing functions is infeasible and makes the code hard to use, https://codeforces.com/blog/entry/18051