ods

package module
v0.0.0-...-e9e05d7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 0 Imported by: 0

README

go-ods

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArrayDeque

func NewArrayDeque() *arrayDeque

func NewArrayQeuue

func NewArrayQeuue() *arrayQueue

func NewArrayStack

func NewArrayStack() *arrayStack

func NewDLList

func NewDLList() *dLList

func NewDualArrayDeque

func NewDualArrayDeque() *dualArrayDeque

func NewFastArrayStack

func NewFastArrayStack() *fastArrayStack

func NewSLList

func NewSLList() *sLList

Types

type Deque

type Deque interface {
	AddFirst(V)
	AddLast(V)
	RemoveFirst() V
	RemoveLast() V
}

type List

type List interface {
	Size() int
	Get(int) V
	Set(int, V) V
	Add(int, V)
	Remove(int) V
}

type Queue

type Queue interface {
	Enqueue(V) bool
	Dequeue() V
}

Queue is FIFO (first-in-first-out) queue

type SSet

type SSet interface {
	Size() int
	Add(int, V)
	Remove(int) V
	Find(V) V
}

SSet is sorted Set

type Stack

type Stack interface {
	Push(V)
	Pop() V
}

Stack is LIFO (last-in-first-out) queue

type USet

type USet interface {
	Size() int
	Add(int, V)
	Remove(int) V
	Find(V) V
}

USet is unordered Set

type V

type V any

Jump to

Keyboard shortcuts

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