binarytree

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree[K comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable](rootVal K) *Tree[K]

func (*Tree[K]) Contains

func (node *Tree[K]) Contains(key K) bool

func (*Tree[K]) Counter

func (node *Tree[K]) Counter() int

type TreeNode

type TreeNode[K comparable] struct {
	Left  *TreeNode[K]
	Right *TreeNode[K]
	Val   K
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL