https://labuladong.online/en/algo/data-structure-basic/cycle-array/

Circular arrays are good for end retrievals / insertions

Instead of resizing the array what they do is they change the start index of the array so you can calculate every array from there

physical index = (start + i) % capacity
  • start - index which the array starts at
  • capacity - the total size of the array