HashTable

package
v0.0.0-...-37ed48e Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 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 HashTable

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

HashTable data structure

func NewHashTable

func NewHashTable() *HashTable

NewHashTable - HashTable constructor

func (*HashTable) Get

func (h *HashTable) Get(key string) (int, error)

Get value by key

func (*HashTable) Remove

func (h *HashTable) Remove(key string) error

Remove value by key

func (*HashTable) Set

func (h *HashTable) Set(key string, value int)

Set value by key

Jump to

Keyboard shortcuts

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