tree

package
v0.0.0-...-4cd11fd Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const NULL = math.MinInt64

Variables

This section is empty.

Functions

This section is empty.

Types

type TreeNode

type TreeNode struct {
	Val   int
	Left  *TreeNode
	Right *TreeNode
}

func BinaryTreeFromSlice

func BinaryTreeFromSlice(input []int) *TreeNode

func (*TreeNode) FindInBST

func (root *TreeNode) FindInBST(n int) *TreeNode

func (*TreeNode) FindInBT

func (root *TreeNode) FindInBT(n int) *TreeNode

func (*TreeNode) ToSlice

func (root *TreeNode) ToSlice() []int

Jump to

Keyboard shortcuts

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