structura.
Interactive

Array

An ordered collection in contiguous memory with fast indexed access.

Live view
Ready to explore0 / 0
01

Run an operation

Choose an action and watch the data change

array.insert(2, 42)
02

Algorithm insight

The logic behind the current step

O(n)Time

Shift elements to make room

Starting from the end, each following element moves one position to the right.

VisitingChangedMovingUnchanged