Hello everyone, I was trying to solve this problem using segment tree.My code is giving runtime(SIGSEGV) error.I tried my best but I think I need your help.Can anyone please explain me where I am going wrong. Thank You:)
Hello everyone, I was trying to solve this problem using segment tree.My code is giving runtime(SIGSEGV) error.I tried my best but I think I need your help.Can anyone please explain me where I am going wrong. Thank You:)
I think your lazy propagation is the reason of the segmentation fault. Propagating the leafs of the tree is unnecessary and too risky
Thank You, That was the error...got the AC.