OSDN Git Service

析合树模板查询传参错误
authorxyjg <50234881+xyjg@users.noreply.github.com>
Mon, 2 Sep 2019 08:43:58 +0000 (16:43 +0800)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2019 08:43:58 +0000 (16:43 +0800)
RT,已修改

docs/ds/divide-combine.md

index c7c5964..4fc3b82 100644 (file)
@@ -370,7 +370,7 @@ void build() {
 
   rt = st[1];  // 栈中最后剩下的点是根结点
 }
-void query(int r, int l) {
+void query(int l, int r) {
   int x = id[l], y = id[r];
   int z = lca(x, y);
   if (typ[z] & 1)