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

@@ -2,8 +2,6 @@ package avlindex
import (
"github.com/davecgh/go-spew/spew"
"github.com/emirpasic/gods/utils"
)
type Node struct {
@@ -28,10 +26,10 @@ func (n *Node) String() string {
type Tree struct {
root *Node
comparator utils.Comparator
comparator comparator.Comparator
}
func New(comparator utils.Comparator) *Tree {
func New(comparator comparator.Comparator) *Tree {
return &Tree{comparator: comparator}
}