Easy

2D Arrays

A 2D array is a grid, usually stored row by row. One cell is still a direct address. Walking the whole grid visits every cell.

Costs

CategoryData Structure
DifficultyEasy
Read one cellO(1)
Scan one row of length cO(c)
Scan an r by c gridO(r × c)

Questions

What is 2D Arrays?

A 2D array is a grid, usually stored row by row. One cell is still a direct address. Walking the whole grid visits every cell.

Where do I practice it?

DSA Master keeps challenges and progress on the phone. This page is the idea and the costs.