Array Insertion and Deletion Complexity
Insertion may require shifting up to n elements.
Deletion may require shifting up to n elements toward the left.
Insertion or deletion at the end can be O(1) when capacity is available.
Insertion or deletion at the beginning is O(n) because almost every element may move.