<DS/>DS_VISUALIZER
FoundationsOOPArraysLinked ListStacksQueuesTreesGraphsHashingStrings
exploreExplore
homechevron_rightTopicschevron_rightArrayschevron_rightMatrix
grid_on

ARRAYS · CATEGORY

Matrix

2-D arrays: traversal order, rotation, multiplication, sparsity.

Choose an operation

grid_4x4arrow_outward

Traversal

Row-major walk across the grid.

O(m·n)O(1)◍ 0/4
rotate_90_degrees_cwarrow_outward

Rotation

Rotate the grid 90° clockwise.

O(m·n)O(1)◍ 0/4
closearrow_outward

Multiplication

Row × column dot products.

O(n³)O(n²)◍ 0/4
scatter_plotarrow_outward

Sparse Matrix

Store only non-zeros as triplets.

O(m·n)O(k)◍ 0/4