Can someone help me with this [problem][1] on spoj. I have done this problem using lazy propagation and was trying to implement less efficient simple point update for range. Can someone tell me the problem with my
[2]
Even the sample test case is not passing :(.
[1]: http://www.spoj.com/problems/HORRIBLE/
[2]: https://ideone.com/bQcxj5
Yes if standalone, no if you supplement it with lazy propagation. They are using the previous update function to explain that the update operations are being stalled and will resume once lazy propagation stops being lazy