Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BeeBombshell/Python-DSA
/ deque.py
File
deque.py
DSA/deque.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
Deque:
2
def
__init__(self, src_arr=[], max_size=300000):
3
self.length = max(max_size, len(src_arr)) + 1
4
self.buf = list(src_arr) + [None] * (self.length - len(src_arr))
Callers
nothing calls this directly
Calls
4
Deque
Class · 0.85
is_full
Method · 0.80
is_empty
Method · 0.80
append
Method · 0.80
Tested by
no test coverage detected