Closed remidinishanth closed 7 months ago
@stevenhalim Take a look at PR, it fixes two bugs in Segment tree implementation.
Thanks remidinishanth for the fixes (init and using 'conquer' method in update function). I rarely check this repo until today (when I need to use Segment Tree code).
In
SegmentTree(int sz)
, if we don't initializeA
thenA[L] = lazy[p];
will throw an error