Grids coding challenges

Practise grids with 8 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Easy · 1 Medium · 7

Skills you'll practise: 2D lists4-neighbor checks8-neighbor checksA* searchAveragesBoundary handlingDiagonalsEdge countingFlood fillGrid simulationHeuristicsNeighbor counting
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

8 challenges
Medium

Game of Life Step

Advance Conway's Game of Life by one generation.

You'll learn Grid simulationNeighbor counting
AdvancedGridsHackathonSimulation
No solutions yet
Medium

Count Islands

Count groups of connected land cells in a grid.

You'll learn Flood fillRecursive DFS
BeginnerGridsLearning-pathRecursion
No solutions yet
Medium

Gradebook Top Student

Find the student with the highest average score.

You'll learn 2D listsAverages
BeginnerFunctionsGridsLearning-path
No solutions yet
Medium

Island Perimeter

Measure the coastline of land cells in a grid.

You'll learn Edge counting4-neighbor checks
AdvancedGridsHackathon
No solutions yet
Medium

Tic-Tac-Toe Winner

Decide the result of a tic-tac-toe board.

You'll learn Win conditionsDiagonals
BeginnerConditionsGridsLearning-path
No solutions yet
Medium

Minesweeper Neighbor Counts

Annotate a rectangular board.

You'll learn 8-neighbor checksBoundary handling
ArraysGrids
No solutions yet
Easy

Row Sums

Add up every row of a grid.

You'll learn 2D listsNested loops
BeginnerGridsLearning-path
No solutions yet
Medium

A* Search on a Weighted Grid

Find the cheapest path across a grid of terrain costs with A*, the search algorithm behind game and robot pathfinding.

You'll learn A* searchHeuristics
GraphsGridsShortest-pathai
No solutions yet