mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-17 17:26:06 +00:00
feat(go): support basic pkg
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// File: binary_search_tree.go
|
||||
// Created Time: 2022-11-25
|
||||
// Author: Reanon (793584285@qq.com)
|
||||
|
||||
package chapter_tree
|
||||
|
||||
import (
|
||||
. "github.com/krahets/hello-algo/pkg"
|
||||
"sort"
|
||||
)
|
||||
|
||||
type BinarySearchTree struct {
|
||||
root *TreeNode
|
||||
}
|
||||
|
||||
func NewBinarySearchTree(nums []int) *BinarySearchTree {
|
||||
// 排序数组
|
||||
sort.Ints(nums)
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user