hashtable

package
v0.0.0-...-73e22f4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 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 HashTable

type HashTable struct {
	Hash []*Record
	Size int
}

func CreateHashTable

func CreateHashTable() HashTable

func (*HashTable) Del

func (h *HashTable) Del(key int) bool

func (*HashTable) Get

func (h *HashTable) Get(key int) (bool, int)

func (*HashTable) Put

func (h *HashTable) Put(key, value int)

type Record

type Record struct {
	Key   int
	Value int
	Next  *Record
}

Jump to

Keyboard shortcuts

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