Abstract
Front Index
- A variable to keep track the index for the start of the circular array
Rear Index
- A variable to keep track the index of the slot after the last element of the circular array
- Can be obtained with
frontIndex + arraySize
Use to implement