Array ADTContiguous storage · O(1) index access
0
32
1
99
2
26
3
96
4
53
5
68
6
19
7
13
8
65
9
85
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.