
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})Expected result
replaces the entire outer border region connected to the top-left corner with `F`For your own tracking. Tests grade your code.
flood_fill(grid, (Point){6, 4}, (Point){2, 1})Expected result
fills only the interior pocket reachable from column 2, row 1, leaving the rest untouchedExpected files
flood_fill.cAllowed functions
None. Write every helper yourself.

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})Expected result
replaces the entire outer border region connected to the top-left corner with `F`For your own tracking. Tests grade your code.
flood_fill(grid, (Point){6, 4}, (Point){2, 1})Expected result
fills only the interior pocket reachable from column 2, row 1, leaving the rest untouchedExpected files
flood_fill.cAllowed functions
None. Write every helper yourself.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.
v0.40: Create exercises. Challenge the community.
Meet Studio →