Hi guys :)) I found a problem about segment tree that i wasn't able to solve it efficiently :(
How can one update a segment of numbers (adding X from index L to R) and another query is to get a sum on a segment (L,R);
thanks)
Hi guys :)) I found a problem about segment tree that i wasn't able to solve it efficiently :(
How can one update a segment of numbers (adding X from index L to R) and another query is to get a sum on a segment (L,R);
thanks)