File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ https://www.cnblogs.com/cjyyb/p/7499020.html
13
13
复杂度分析 https://www.bilibili.com/video/BV1q7421K7yu/
14
14
15
15
普通平衡树 https://www.luogu.com.cn/problem/P3369 https://www.luogu.com.cn/problem/P6136
16
- 文艺平衡树 https://www.luogu.com.cn/problem/P3391
17
16
LC2296 https://leetcode.cn/problems/design-a-text-editor
17
+ 反转区间 https://www.luogu.com.cn/problem/P3391 文艺平衡树
18
+ - LC3526 https://leetcode.cn/problems/range-xor-queries-with-subarray-reversals/
18
19
https://atcoder.jp/contests/abc392/tasks/abc392_f
19
20
LC1825 https://leetcode.cn/problems/finding-mk-average/ https://leetcode.cn/problems/finding-mk-average/solutions/2067232/by-jessechan-19j2/
20
21
todo https://codeforces.com/problemset/problem/702/F
@@ -89,7 +90,7 @@ func (o *spNode) rotate(d int) *spNode {
89
90
x := o .lr [d ^ 1 ]
90
91
o .lr [d ^ 1 ] = x .lr [d ]
91
92
x .lr [d ] = o
92
- // x.sz = o.sz; o.maintain()
93
+ // 下面两行更快的写法是 x.sz = o.sz(其他维护信息也复制过来) ; o.maintain()
93
94
o .maintain ()
94
95
x .maintain ()
95
96
return x
You can’t perform that action at this time.
0 commit comments