can any one help on segment trees ,how to use segment tree in this problem???
read about segment trees with lazy propagation
i tried a lot but can’t seem to implement it with this problem if you can help a bit more…
Try using arrays , instead of binary tree for constructing segment tree