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
| Category | Data Structure |
| Difficulty | Easy |
| Read one cell | O(1) |
| Scan one row of length c | O(c) |
| Scan an r by c grid | O(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.