Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashTable ¶
type HashTable struct { Capacity int // contains filtered or unexported fields }
HashTable is a data structure
func (*HashTable) Add ¶
func (table *HashTable) Add(item *KeyValuePair) (bool, error)
Add is a method to and a new item to the table
type KeyValuePair ¶
type KeyValuePair struct { Key int Value interface{} Next *KeyValuePair }
KeyValuePair is a data structude for a Chaining Hash Table
func NewKeyValuePair ¶
func NewKeyValuePair(key int, value interface{}) *KeyValuePair
NewKeyValuePair is a constructor for the KeyValuePair structure
Click to show internal directories.
Click to hide internal directories.