Skip to content

Commit 78ccda0

Browse files
authored
Format constructor for better readability
1 parent 0378f30 commit 78ccda0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/data_structures_[l,r]/seg_tree.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ template<class T, class F> struct tree {
1919
int n;
2020
F op;
2121
vector<T> s;
22-
tree(int n, T unit, F op): n(n), op(op), s(2 * n, unit) {}
22+
tree(int n, T unit, F op):
23+
n(n), op(op), s(2 * n, unit) {}
2324
void update(int i, T val) {
2425
for (s[i += n] = val; i /= 2;)
2526
s[i] = op(s[2 * i], s[2 * i + 1]);

0 commit comments

Comments
 (0)