← CS 302 Home

Arrays — Interactive

Access elements in O(1), insert and delete with shifting, and search linearly. Watch how contiguous memory layout shapes performance.

Normal
0
Size
10
Capacity
Last Op Shifts
Try it: Insert at index 0 and watch every element shift right. That's why insertion is O(n)!
Default
Accessing
Shifting
Inserted
Found