mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-15 04:38:30 +08:00
Fix the code of hash map chaining.
This commit is contained in:
@ -66,7 +66,7 @@ class HashMapChaining:
|
||||
if pair.key == key:
|
||||
bucket.remove(pair)
|
||||
self.size -= 1
|
||||
return
|
||||
break
|
||||
|
||||
def extend(self):
|
||||
"""扩容哈希表"""
|
||||
|
Reference in New Issue
Block a user