Skip to content

Commit 820635c

Browse files
authored
Move operation function inside seg_tree struct
1 parent 2166a3d commit 820635c

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; }
43
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)