Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinarySearchTree ¶
type BinarySearchTree struct{}
func New ¶
func New(data map[int]interface{}) (*BinarySearchTree, error)
func (*BinarySearchTree) Put ¶
func (bst *BinarySearchTree) Put(key int, value interface{}) error
func (*BinarySearchTree) Remove ¶
func (bst *BinarySearchTree) Remove(key int) error
func (*BinarySearchTree) Search ¶
func (bst *BinarySearchTree) Search(key int) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.