Skip to content

Commit 1eb7639

Browse files
committed
update
1 parent e45d027 commit 1eb7639

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

copypasta/odt.go

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ func (t *odt) prepare(l, r int) (begin, end int) {
4747
return
4848
}
4949

50+
// 以下方法传入的 begin, end 来自事先计算的 t.prepare
51+
5052
func (t *odt) merge(begin, end, r int, val int64) {
5153
ot := *t
5254
ot[begin].r = r

copypasta/odt_bst.go

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func (t *treap) prepare(l, r int) {
2222
}
2323

2424
func (t *treap) merge(l, r int, value tpValueType) {
25+
//t.prepare(l, r)
2526
for o := t.next(l); o != nil && o.l <= r; o = t.next(o.l) {
2627
//t.delete(o.l)
2728
}

0 commit comments

Comments
 (0)