MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / _size_up

Method _size_up

data_structures/hashing/hash_map.py:122–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 self._add_item(item.key, item.val)
121
122 def _size_up(self) -> None:
123 self._resize(len(self._buckets) * 2)
124
125 def _size_down(self) -> None:
126 self._resize(len(self._buckets) // 2)

Callers 1

__setitem__Method · 0.95

Calls 1

_resizeMethod · 0.95

Tested by

no test coverage detected