Skip to content

Commit 3c99182

Browse files
authored
Refactor operation function in lazy segment tree
1 parent 5af37a5 commit 3c99182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/data_structures_[l,r)/lazy_seg_tree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include "seg_tree_midpoint.hpp"
3+
ll op(ll vl, ll vr) { return vl + vr; }
34
struct seg_tree {
4-
ll op(ll vl, ll vr) { return vl + vr; }
55
int n;
66
vector<ll> tree, lazy;
77
seg_tree(int n): n(n), tree(2 * n), lazy(n) {}

0 commit comments

Comments
 (0)