i am getting sigsev error in lr query using segment tree please help.
https://www.codechef.com/viewsolution/16387107
post d link to ur code !
@manaranjanfav,while assigning values to left and right variables…u did right=arr[rq]…dis is incorrect coz rq can be upto 1e9 whereas ur arr size is 1e5+5…!
hope u got it !
got it thanks