Grid basics
- Stage
- 3
- Module
- M3.7
- Lessons
- 1
In this module
- Read and store a rectangular grid of characters.
- Use row and column indices to access and update grid cells.
- Iterate over rows and columns with nested loops.
- Apply grid basics to search and count features in a two-dimensional space.
Before this module
Lessons
Practice
Try these on the judge. Each link opens the problem on WMOJ.
- 2021 S1Crazy Fencing (opens on WMOJ in a new tab) WMOJ
Sum a property across a 2D layout of shapes, row by row.
- 2023 J4Trianglane (opens on WMOJ in a new tab) WMOJ(same problem as 2023 S1)
Count features across a triangular grid pattern.