Skip to content

Commit 611f33d

Browse files
authored
update docs
Updated segment tree example code in comments.
1 parent 525cde5 commit 611f33d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
//! https://codeforces.com/blog/entry/118682
33
//! @code
44
//! {
5-
//! tree st(n, pii{}, [&](pii& l, pii& r) {
6-
//! return min(l, r);
5+
//! tree st(n, 0LL, [&](ll l, ll r) {
6+
//! return l + r;
77
//! });
88
//! }
9-
//! tree st(n, int{}, ranges::min);
10-
//! rep(i, 0, n) st.update(i, a[i]);
9+
//! tree st(n, INT_MAX, ranges::min);
1110
//! @endcode
1211
//! @time O(n + q log n)
1312
//! @space O(n)

0 commit comments

Comments
 (0)