container

package
v0.0.0-...-85ba462 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 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 BinaryTree

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

type BinaryTreeNode

type BinaryTreeNode struct {
	Val int
	// contains filtered or unexported fields
}

type DoublyLinkedList

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

func NewDoublyLinkedList

func NewDoublyLinkedList() *DoublyLinkedList

func (*DoublyLinkedList) AddFirst

func (l *DoublyLinkedList) AddFirst(x *node)

func (*DoublyLinkedList) AddLast

func (l *DoublyLinkedList) AddLast(x *node)

func (*DoublyLinkedList) Remove

func (l *DoublyLinkedList) Remove(x node)

func (*DoublyLinkedList) RemoveLast

func (l *DoublyLinkedList) RemoveLast() *node

func (*DoublyLinkedList) Size

func (l *DoublyLinkedList) Size() int

type Hash

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

type LRUCache

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

func NewLRUCache

func NewLRUCache(capacity int) *LRUCache

type MaxPriorityQueue

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

func NewMaxPriorityQueue

func NewMaxPriorityQueue() *MaxPriorityQueue

func (*MaxPriorityQueue) DelMax

func (t *MaxPriorityQueue) DelMax() int

func (*MaxPriorityQueue) Insert

func (t *MaxPriorityQueue) Insert(val int)

func (*MaxPriorityQueue) Max

func (t *MaxPriorityQueue) Max() int

type MinPriorityQueue

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

func NewMinPriorityQueue

func NewMinPriorityQueue() *MinPriorityQueue

func (*MinPriorityQueue) DelMin

func (t *MinPriorityQueue) DelMin() int

func (*MinPriorityQueue) Insert

func (t *MinPriorityQueue) Insert(val int)

func (*MinPriorityQueue) Min

func (t *MinPriorityQueue) Min() int

type Queue

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

func NewQueue

func NewQueue() *Queue

func (*Queue) Dequeue

func (q *Queue) Dequeue() int

func (*Queue) Enqueue

func (q *Queue) Enqueue(element int)

func (*Queue) Size

func (q *Queue) Size() int

type Stack

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

func NewStack

func NewStack() *Stack

func (*Stack) Pop

func (s *Stack) Pop() int

func (*Stack) Push

func (s *Stack) Push(element int)

func (*Stack) Size

func (s *Stack) Size() int

Jump to

Keyboard shortcuts

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