Circular Array
- Python module implementing an indexable, double sided queue
- See grscheller.circular-array project on PyPI
- See Detailed API documentation on GH-Pages
- See Source code on GitHub
The CircularArray class implements an auto-resizing, indexable, double sided queue data structure. O(1) indexing and O(1) pushes and pops either end. Useful if used directly as an improved version of a Python List and in the implementation of other data structures in a "has-a" relationship.
from grscheller.circular_array import CircularArray