Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
130
class
QueueNode:
Callers
1
enqueue
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected