model

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

func NewListNode added in v0.1.6

func NewListNode(values []int) (head *ListNode)

func (*ListNode) String added in v0.1.6

func (l *ListNode) String() (ans string)

func (*ListNode) ToSlice added in v0.1.6

func (l *ListNode) ToSlice() (values []int)

type MaxHeap added in v0.3.8

type MaxHeap []int

func (MaxHeap) Len added in v0.3.8

func (h MaxHeap) Len() int

func (MaxHeap) Less added in v0.3.8

func (h MaxHeap) Less(i, j int) bool

func (*MaxHeap) Pop added in v0.3.8

func (h *MaxHeap) Pop() interface{}

func (*MaxHeap) Push added in v0.3.8

func (h *MaxHeap) Push(x interface{})

func (MaxHeap) Swap added in v0.3.8

func (h MaxHeap) Swap(i, j int)

func (MaxHeap) Top added in v0.3.8

func (h MaxHeap) Top() int

type MinHeap added in v0.3.8

type MinHeap []int

func (MinHeap) Len added in v0.3.8

func (h MinHeap) Len() int

func (MinHeap) Less added in v0.3.8

func (h MinHeap) Less(i, j int) bool

func (*MinHeap) Pop added in v0.3.8

func (h *MinHeap) Pop() interface{}

func (*MinHeap) Push added in v0.3.8

func (h *MinHeap) Push(x interface{})

func (MinHeap) Swap added in v0.3.8

func (h MinHeap) Swap(i, j int)

func (MinHeap) Top added in v0.3.8

func (h MinHeap) Top() int

type TreeNode

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

Jump to

Keyboard shortcuts

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