hashtable

package
v0.0.0-...-1e46814 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 1 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 取余法(定值)+拉链法(解决冲突) 未处理相同 key

func New

func New(initSize int) *HashTable

func (*HashTable) Add

func (t *HashTable) Add(key string, value interface{})

func (*HashTable) Del

func (t *HashTable) Del(key string) bool

func (*HashTable) Get

func (t *HashTable) Get(key string) (interface{}, bool)

func (*HashTable) Length

func (t *HashTable) Length() int

func (*HashTable) Set

func (t *HashTable) Set(key string, value interface{}) bool

Jump to

Keyboard shortcuts

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