MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / __init__

Method __init__

Python/circular queue.py:4–8  ·  view source on GitHub ↗
(self,maxsize)

Source from the content-addressed store, hash-verified

2
3class Queue:
4 def __init__(self,maxsize):
5 self.items = maxsize*[None]
6 self.maxsize=maxsize
7 self.start=-1
8 self.top=-1
9
10 def __str__(self):
11 values=[str(x) for x in self.items]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected