lc0919

package
v0.0.0-...-38cfe7b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CBTInserter

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

func Constructor

func Constructor(root *TreeNode) CBTInserter

TODO: is not solved yet

func (*CBTInserter) Get_root

func (cbt *CBTInserter) Get_root() *TreeNode

func (*CBTInserter) Insert

func (cbt *CBTInserter) Insert(val int) int

type Queue

type Queue[T any] interface {
	Size() int
	Push(T)
	PushAll(...T)
	Poll() T
	Peek() T
	Values() []T
}

Jump to

Keyboard shortcuts

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