mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 06:07:20 +08:00 
			
		
		
		
	fix(tree): amend tree in golang
This commit is contained in:
		@ -5,8 +5,9 @@
 | 
			
		||||
package chapter_tree
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	. "github.com/krahets/hello-algo/pkg"
 | 
			
		||||
	"sort"
 | 
			
		||||
 | 
			
		||||
	. "github.com/krahets/hello-algo/pkg"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type BinarySearchTree struct {
 | 
			
		||||
 | 
			
		||||
@ -6,6 +6,7 @@ package chapter_tree
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"container/list"
 | 
			
		||||
 | 
			
		||||
	. "github.com/krahets/hello-algo/pkg"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -5,8 +5,9 @@
 | 
			
		||||
package chapter_tree
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	. "github.com/krahets/hello-algo/pkg"
 | 
			
		||||
	"testing"
 | 
			
		||||
 | 
			
		||||
	. "github.com/krahets/hello-algo/pkg"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func TestBinaryTree(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user