I tried almost 4 hours trying to find the bugs in my solution to the problem -SPOJ Problem.
It is a simple Lazy-Propagation Sum Queries problem.
Here's my Code - CODE
I tried almost 4 hours trying to find the bugs in my solution to the problem -SPOJ Problem.
It is a simple Lazy-Propagation Sum Queries problem.
Here's my Code - CODE