Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
哈希表的实现
func CreateHashTable ¶
func CreateHashTable(capacity int, comparator func(thisKey interface{}, compareKey interface{}) int) *Table
comparator 可以为空,但是必须实现了common.CompareAble接口
func CreateHashTableDeFault ¶
func CreateHashTableDeFault(comparator func(thisKey interface{}, compareKey interface{}) int) *Table
创建hash表
Click to show internal directories.
Click to hide internal directories.