Implemented Segment tree with lazy propagation but still getting TLE.
Help?
instead of this
if(a==b)
{
return tree[node];
}
in 87th line, you should use
if (a >= i && b <= j) {
return tree[node];
}
but still you will get wa
instead of this
if(a==b)
{
return tree[node];
}
in 87th line, you should use
if (a >= i && b <= j) {
return tree[node];
}
but still you will get wa