separate_chaining_hash_table

package
v0.0.0-...-8859e38 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key string

type Node

type Node struct {
	Key  Key
	Val  Value
	Next *Node
}

func NewNode

func NewNode(k Key, v Value, next *Node) *Node

type SeparateChainingHT

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

func NewEmptySeparateChainingHT

func NewEmptySeparateChainingHT() SeparateChainingHT

func NewSizedSeparateChainingHT

func NewSizedSeparateChainingHT(size int) SeparateChainingHT

func (*SeparateChainingHT) Contains

func (ht *SeparateChainingHT) Contains(k Key) bool

func (*SeparateChainingHT) Delete

func (ht *SeparateChainingHT) Delete(k Key)

func (*SeparateChainingHT) Get

func (ht *SeparateChainingHT) Get(k Key) (Value, error)

func (*SeparateChainingHT) IsEmpty

func (ht *SeparateChainingHT) IsEmpty() bool

func (*SeparateChainingHT) Put

func (ht *SeparateChainingHT) Put(k Key, v Value)

func (*SeparateChainingHT) Size

func (ht *SeparateChainingHT) Size() int

type Value

type Value int

Jump to

Keyboard shortcuts

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