Array
An ordered collection in contiguous memory with fast indexed access.
Edit graph
Drag vertices to reposition them
—
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