We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff17ec commit 79dbf28Copy full SHA for 79dbf28
data_structures/hashing/hash_map.py
@@ -232,7 +232,7 @@ def __delitem__(self, key: KEY) -> None:
232
233
# Test resize down when sparse
234
## Setup: resize up
235
- >>> hm = HashMap(100, capacity_factor=0.75)
+ >>> hm = HashMap(initial_block_size=100, capacity_factor=0.75)
236
>>> len(hm._buckets)
237
100
238
>>> for i in range(75):
@@ -245,6 +245,8 @@ def __delitem__(self, key: KEY) -> None:
245
246
## Resize down
247
>>> del hm[75]
248
+ >>> len(hm._buckets)
249
+ 100
250
>>> del hm[74]
251
252
0 commit comments