cyds

package module
v0.0.0-...-7c95baa Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 0 Imported by: 1

README

cyds

a data structures lib for go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinarySearch

func BinarySearch(slice []interface{}, condition func(i int) bool) int

Types

type Elem

type Elem interface{}

type Node

type Node struct {
	Values []interface{}
	// contains filtered or unexported fields
}

Node

func NewNode

func NewNode() Node

type Queue

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

func (*Queue) Empty

func (list *Queue) Empty() bool

func (*Queue) Front

func (q *Queue) Front() Elem

func (*Queue) Pop

func (q *Queue) Pop() Elem

func (*Queue) Push

func (list *Queue) Push(v Elem)

func (*Queue) Size

func (list *Queue) Size() int

type Sizet

type Sizet = int

type Stack

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

func (*Stack) Empty

func (list *Stack) Empty() bool

func (*Stack) Pop

func (q *Stack) Pop() Elem

func (*Stack) Push

func (list *Stack) Push(v Elem)

func (*Stack) Size

func (list *Stack) Size() int

func (*Stack) Top

func (q *Stack) Top() Elem

type Trie

type Trie struct {
	Nodes []Node
}

func (*Trie) Insert

func (t *Trie) Insert(str string, val interface{})

func (*Trie) Match

func (t *Trie) Match(str string) (*Node, bool)

Jump to

Keyboard shortcuts

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