Skip to content

Matrix & Grid

Rows, columns and neighbours — the grid problems interviews keep drawing.

Start the module

1. Grid Traversal · 4 min

0 of 5 lessons · 0% complete

Start module

Matrix & Grid visualizer

Every lesson in this module opens with an animation you can step through. This is the first one — Grid Traversal: Row first, column second, and always check the edge.

Grid Traversal

Step 1 of 10

A grid is a list of rows, so grid[r][c] is row r, column c — row first, every time.

Lessons
5
Minutes
23
Problems
14
Concepts
5

Quiz yourself: 3 questions from this module

1 / 3

Which offset moves one cell up?