MCPcopy Index your code
hub / github.com/keon/algorithms / _expand

Method _expand

algorithms/data_structures/queue.py:125–127  ·  view source on GitHub ↗

Double the size of the underlying array.

(self)

Source from the content-addressed store, hash-verified

123 return self._array[self._front]
124
125 def _expand(self) -> None:
126 """Double the size of the underlying array."""
127 self._array += [None] * len(self._array)
128
129
130class QueueNode:

Callers 1

enqueueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected