Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SegTree/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public S prod(int l, int r)

`op(a[l], ..., a[r - 1])` を、モノイドの性質を満たしていると仮定して計算します。`l = r` のときは単位元 `e` を返します。

計算量: $O(n)$
計算量: $O(\log n)$

制約: `0 <= l <= r <= n`

Expand Down