Skip to content

Commit 3ccb001

Browse files
committed
fix
1 parent 2a42902 commit 3ccb001

File tree

1 file changed

+1
-1
lines changed
  • leetcode/weekly/296/d2

1 file changed

+1
-1
lines changed

leetcode/weekly/296/d2/d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (o *node) maintain() {
199199
o.sz = 1 + o.ch[0].size() + o.ch[1].size()
200200
}
201201

202-
// 构建一棵中序遍历为 [l,r] 的 splay 树
202+
// 构建一棵中序遍历为 s 的 splay 树
203203
// 比如,给你一个序列和一些修改操作,每次取出一段子区间,cut 掉然后 append 到末尾,输出完成所有操作后的最终序列:
204204
// 我们可以 buildSplay(1,n),每次操作调用两次 split 来 cut 区间,得到三棵子树 a b c
205205
// append 之后应该是 a c b,那么我们可以 a.merge(c.merge(b)) 来完成这一操作

0 commit comments

Comments
 (0)