bfs

package
v0.0.0-...-a119377 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPrintDirectoryOfEMployee

func RunPrintDirectoryOfEMployee()

Types

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func (*Tree) Insert

func (t *Tree) Insert(val int)

func (*Tree) PrintLevelOrder

func (t *Tree) PrintLevelOrder()

type TreeNode

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

A Tree is a binary tree with integer values.

func (*TreeNode) Height

func (root *TreeNode) Height() int

func (*TreeNode) Insert

func (n *TreeNode) Insert(v int)

func (*TreeNode) PrintLevel

func (root *TreeNode) PrintLevel(level int, result *[]int)

Jump to

Keyboard shortcuts

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