Skip to content

Commit

Permalink
Update Segment Tree.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashishgup1 authored Apr 3, 2019
1 parent c423ef3 commit 562feec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Segment Tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct SegTree
}
int M = (L + R)/2;
Update(node*2, L, M, i, j, val);
Update(node*2, M + 1, R, i, j, val);
Update(node*2 + 1, M + 1, R, i, j, val);
merge(st[node], st[node*2], st[node*2 + 1]);
}

Expand Down

0 comments on commit 562feec

Please sign in to comment.