Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ _size_down
Method
_size_down
data_structures/hashing/hash_map.py:125–126 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
123
self._resize(len(self._buckets) * 2)
124
125
def
_size_down(self) -> None:
126
self._resize(len(self._buckets) // 2)
127
128
def
_iterate_buckets(self, key: KEY) -> Iterator[int]:
129
ind = self._get_bucket_index(key)
Callers
1
__delitem__
Method · 0.95
Calls
1
_resize
Method · 0.95
Tested by
no test coverage detected