By range assignment, I mean setting all values in a range to x
I have been looking for this template but could not find anywhere. The best I have got is when updates is not decreasing the value.
I also tried modifying the lazy segment tree but could not get desired result
Can you share your template