
Implement a flood-fill algorithm that propagates through a 2D character grid from a given starting cell, marking every reachable connected cell with the character F.
flood_fill(grid, (Point){6, 4}, (Point){0, 0})replaces the entire outer border region connected to the top-left corner with `F`flood_fill(grid, (Point){6, 4}, (Point){2, 1})fills only the interior pocket reachable from column 2, row 1, leaving the rest untouchedflood_fill.c
Run the tests to grade your code
Implement a flood-fill algorithm that propagates through a 2D character grid from a given starting cell, marking every reachable connected cell with the character F.
flood_fill(grid, (Point){6, 4}, (Point){0, 0})replaces the entire outer border region connected to the top-left corner with `F`flood_fill(grid, (Point){6, 4}, (Point){2, 1})fills only the interior pocket reachable from column 2, row 1, leaving the rest untouchedflood_fill.c
Run the tests to grade your code
Memory will appear here