Skip to content

Commit 9b0ec89

Browse files
committed
more init methods
1 parent 45cab6f commit 9b0ec89

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

library/data_structures/seg_tree_inc.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#pragma once
22
//! https://codeforces.com/blog/entry/118682
33
//! @code
4-
//! {
5-
//! tree_inc st(n, pii(0, 0), [&](pii& l, pii& r) {
6-
//! return min(l, r);
7-
//! });
8-
//! }
9-
//! tree_inc st(n, int(0), ranges::min);
10-
//! rep(i, 0, n) st.update(i, a[i]);
4+
//! tree_inc st1(n, pii(0, 0), [&](pii& l, pii& r) {
5+
//! return min(l, r);
6+
//! });
7+
//! tree_inc st2(n, (int)0, ranges::min);
8+
//! tree_inc st3(n, (ll)0, plus<ll>{});
119
//! @endcode
1210
//! @time O(n + q log n)
1311
//! @space O(n)

0 commit comments

Comments
 (0)