Arrays Flashcards

1
Q

What are two disadvantages of arrays?

A
  1. Adding an element to the beginning or middle of array has great operational cost since all element after index i must be shifted one position to the right.
  2. Arrays have fixed size.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly