Versions in this module Expand all Collapse all v0 v0.1.1 Dec 26, 2024 Changes in this version + var ErrInvalidKey = fmt.Errorf("invalid key") + var ErrNodeNotFound = fmt.Errorf("node not found") v0.1.0 Dec 15, 2021 Changes in this version + type BinarySearchTree struct + func New(data map[int]interface{}) (*BinarySearchTree, error) + func (bst *BinarySearchTree) Put(key int, value interface{}) error + func (bst *BinarySearchTree) Remove(key int) error + func (bst *BinarySearchTree) Search(key int) (interface{}, error)