Hi,
I wanted to know how to make segment tree with
Lazy propagation for Range Assignment Updates (make elements in range L to R equals to update_Val) and Range Sum Queries.
I am not able to code it properly and also I couldn't find any proper tutorial for this specific set of operations.
Can anyone share the code for doing that?
it might be helpful.
https://codeforces.me/blog/entry/18051
I am actually looking for a recursive version. Iterative version is too confusing for me. Thanks for the link anyway.
This is a Bangla Tutorial but I think you will understand the code. Check this out.
http://www.shafaetsplanet.com/?p=1591
i think this might work
https://ideone.com/ohH0nh
THANKS A LOT BRO!!! That worked! :D