previous
|
index
|
next
Array Implementation: Adding an Item
Suppose an item with key
2
is added.
All but one item must be shifted:
In the worst case,
n
items have to be shifted
previous
|
index
|
next