Help Needed (SPOJ- POSTERS)

Any idea why I am getting runtime error when I submit this problem in SPOJ?

1 Like

In updation and Query, I don’t see you checking if(s!=e) before pushing the lazy Tree values to it’s children.
here’s my solution(Using Segment Tree Lazy Propagation and Coordinate Compression.):

The idea is same as your’s so you might see something that helps you.

change MAX_SIZE to 100000,because there can be 80000 unique values in total 40000 ranges.

1 Like

Thanks. Solved the problem.

I don’t think this is the issue.