This commit is contained in:
2019-03-23 04:04:25 +08:00
parent c9c830b248
commit cbeafe0974
6 changed files with 247 additions and 1777 deletions

View File

@@ -32,9 +32,6 @@ type Tree struct {
}
func New(comparator utils.Comparator) *Tree {
if m == nil {
m = make(map[int]int)
}
return &Tree{comparator: comparator}
}
@@ -615,8 +612,6 @@ func (avl *Tree) fixRemoveHeight(cur *Node) {
}
var m map[int]int
func (avl *Tree) fixPutHeight(cur *Node) {
for {