Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Matrices (2D arrays) represent grids. Traversal involves visiting elements using nested loops, usually with `i` for rows and `j` for columns.
An element in an `M x N` matrix at `(r, c)` can be mapped to a 1D array index using: `index = r * N + c`. This is how matrices are actually stored in memory.