Array ADTContiguous storage · O(1) index access
0
89
1
24
2
75
3
63
4
74
5
74
6
14
7
54
8
66
9
71
Length
10
Comparisons
0
Writes
0
Index access is O(1) — that is why arrays beat lists for random reads. But inserting at the front shifts every element, costing O(n). Try inserting at index 0.