update hashmap
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ Hash hashCode(char *key){
|
||||
|
||||
将大小为M的数组中的每个元素指向一条链表,链表中的每个节点都存储了散列值为该元素索引的键值对。每条链表的平均长度是N/M,N是键值对的总个数。如下图:
|
||||
|
||||
!()[./hashmap.png]
|
||||

|
||||
|
||||
添加操作:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user