Is works on the principle of a ring buffer. Due to the fact that there is no need to allocate memory again, each operation is performed in O(1). This queue implementation has a significant drawback: a limit on the maximum size.
Python 3.9.10
- Clone the repository. On the command line:
git clone https://github.com/MrKalister/deque_with_ring_buffer.git
or use SSH-key:
git clone git@github.com:MrKalister/deque_with_ring_buffer.git
- Fill in input.txt in accordance with the example available in it.
Maxim Novikov