Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ implementations. Keep each task focused on one feature or one coherent change.
- Document the overview, API signature, behavior, constraints or
preconditions, and time and space complexity. Include other sections from the
template when applicable.
- Do not write a literal `|` inside inline math because the documentation
renderer may interpret it as a Markdown table delimiter. Prefer a named
variable, or escape vertical bars in absolute values, such as `\|x\|`.
- After changing Markdown documentation, run:

```console
Expand Down
5 changes: 3 additions & 2 deletions docs/li-chao-tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ documentation_of: //structure/convex-hull-trick/li-chao-tree.hpp

## 記法

- $m$: コンストラクタに渡した座標の個数
- $n$: コンストラクタに渡した座標の重複を除いた個数

# コンストラクタ
Expand All @@ -28,13 +29,13 @@ LiChaoTree(const vector<T>& x, T INF)

## 制約

- $1 \leq |x|$
- $1 \leq m$
- `INF` はすべてのクエリ結果以上
- 直線の値 $ax+b$ は `T` で表現できる

## 計算量

- 時間計算量: $O(|x| \log |x|)$
- 時間計算量: $O(m \log m)$
- 空間計算量: $O(n)$

# update
Expand Down
Loading