binarytree

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 TreeNode

type TreeNode[T any] struct {
	Item T
	L    *TreeNode[T]
	R    *TreeNode[T]
}

func NewNode

func NewNode[T any](item T, l *TreeNode[T], r *TreeNode[T]) *TreeNode[T]

func (*TreeNode[T]) RecursiveInfixSearch

func (node *TreeNode[T]) RecursiveInfixSearch(f func(*T))

func (*TreeNode[T]) RecursivePostfixSearch

func (node *TreeNode[T]) RecursivePostfixSearch(f func(*T))

func (*TreeNode[T]) RecursivePrefixSearch

func (node *TreeNode[T]) RecursivePrefixSearch(f func(*T))

Jump to

Keyboard shortcuts

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