Circular Queue
A fixed array of 6 slots — and it never shifts anything. Instead of moving the data, a circular queue moves the head pointer, and wraps it around the end. −1 means an empty slot.
step 01/11
- comparing
- moving
- in final place
- ruled out
A fixed array of 6 slots — and it never shifts anything. Instead of moving the data, a circular queue moves the head pointer, and wraps it around the end. −1 means an empty slot.
step 01/11