<DS/>DS_VISUALIZER
FoundationsOOPArraysLinked ListStacksQueuesTreesGraphsHashingStrings
exploreExplore
homechevron_rightTopicschevron_rightArrayschevron_rightBasic Operations
tune

ARRAYS · CATEGORY

Basic Operations

Traverse, insert, delete and update elements.

Choose an operation

linear_scalearrow_outward

Traversal

Visit every element once.

O(n)O(1)◍ 0/6
add_boxarrow_outward

Insertion

Shift right, then place a value.

O(n)O(1)◍ 0/5
deletearrow_outward

Deletion

Remove, then shift left.

O(n)O(1)◍ 0/5
editarrow_outward

Updating

Overwrite a value in place.

O(1)O(1)◍ 0/5