hashtable

package
v0.0.0-...-cc388e2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package hashtable listhashtable.go 实现基于链表法解决冲突的散列表

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListHashTable

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

ListHashTable 链表法散列表结构

func NewListHashTable

func NewListHashTable(l int) *ListHashTable

NewListHashTable 返回新建的散列表

func (*ListHashTable) Get

func (h *ListHashTable) Get(key string) interface{}

Get 获取数据

func (*ListHashTable) Set

func (h *ListHashTable) Set(key string, val interface{})

Set 存储数据

Jump to

Keyboard shortcuts

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