Skip to content

Commit

Permalink
Merge pull request #82 from luckylat/lazesegtree/patch-1
Browse files Browse the repository at this point in the history
fix(lazysegtree): fix process of out-of-range in getf
  • Loading branch information
luckylat authored Feb 10, 2024
2 parents d98a708 + d10b785 commit a2dd7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/data-structure/segment-tree/lazy-add-segment-tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct LazySegmentTree{
r = n-1;
}
if(r < a || b < l){
return (1LL<<61);
return initer;
}
eval(k,l,r);
if(a <= l && r <= b){
Expand Down

0 comments on commit a2dd7e4

Please sign in to comment.