Any idea why I am getting runtime error when I submit this problem SPOJ.com - Problem POSTERS in SPOJ?
EgVnR3 - Online C++0x Compiler & Debugging Tool - Ideone.com
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.): w51s0z - Online C++0x Compiler & Debugging Tool - Ideone.com
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.