(self, n: int)
| 5 | """Circular FIFO queue with a fixed capacity""" |
| 6 | |
| 7 | def __init__(self, n: int): |
| 8 | self.n = n |
| 9 | self.array = [None] * self.n |
| 10 | self.front = 0 # index of the first element |
| 11 | self.rear = 0 |
| 12 | self.size = 0 |
| 13 | |
| 14 | def __len__(self) -> int: |
| 15 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected