Graphs 0/61

Lesson 3 of 6

Grid traversal: flood fill and grid search

Generate grid neighbors, count regions with flood fill, search inward from the border and find the fewest moves with BFS.

4,579 words ยท 21 min read

Part 1 of 10 Grids as implicit graphs