DSA · Reimagined
Arrays intro time O(n) space O(1)

Traverse an Array

Visit each index in order, doing constant work per element — the foundation of almost every array algorithm.

4
0
8
1
15
2
16
3
23
4
42
5

Walk the array left to right — 6 elements.

1 / 8

Practice

Machine twin: /dsa-viz-v2/array-traverse.json — the full deterministic run as structured data.