Skip to content

Commit 6354304

Browse files
committed
resize_down: actual result
This is a problem since it causes rapid cycling
1 parent 2c99889 commit 6354304

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Diff for: data_structures/hashing/hash_map.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,8 @@ def __delitem__(self, key: KEY) -> None:
243243
200
244244
245245
## Resize down
246-
>>> for i in range(38, 76):
247-
... del hm[i]
248-
>>> len(hm._buckets)
249-
200
250-
>>> del hm[37]
246+
>>> del hm[75]
247+
>>> del hm[74]
251248
>>> len(hm._buckets)
252249
100
253250
"""

0 commit comments

Comments
 (0)