From 63823786116bb8719adb8959929007062b7a61ca Mon Sep 17 00:00:00 2001 From: Trisolaris HD <36555123+TrisolarisHD@users.noreply.github.com> Date: Tue, 14 May 2019 12:30:08 +0800 Subject: [PATCH] Update heavy-light-decomposition.md (#1215) fix code ([#198](https://github.com/OI-wiki/gitment/issues/198#issuecomment-491858319)) --- docs/graph/heavy-light-decomposition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/graph/heavy-light-decomposition.md b/docs/graph/heavy-light-decomposition.md index 35f55ce0..a212b7f9 100644 --- a/docs/graph/heavy-light-decomposition.md +++ b/docs/graph/heavy-light-decomposition.md @@ -214,7 +214,7 @@ int querymax(int x, int y) { for (int j = h[o]; j; j = nxt[j]) if (p[j] != son[o] && p[j] != fa[o]) dfs2(p[j], p[j]); } - int querystd::max(int x, int y) { + int querymax(int x, int y) { int ret = -inf, fx = top[x], fy = top[y]; while (fx != fy) { if (dep[fx] >= dep[fy]) -- 2.11.0