hashtable

package
v0.0.0-...-44f814d Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ArraySize = 10

ArraySize is the size of the array

Variables

This section is empty.

Functions

This section is empty.

Types

type HashTable

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

HashTable is a hash table

func InitHashTable

func InitHashTable() *HashTable

func (*HashTable) Delete

func (h *HashTable) Delete(key string)

Delete will take in a key and delete it from the hash table

func (*HashTable) Insert

func (h *HashTable) Insert(key string)

Insert will take in a key and add it to the hash table array

func (*HashTable) Search

func (h *HashTable) Search(key string) bool

Search will take in a key and return true if that key is stored in the hash table

Jump to

Keyboard shortcuts

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