{"id":"flood-fill-color-guard-termination","text":"The `original == color` early return in `floodFill` is necessary to prevent infinite recursion; without it, coloring a pixel to the same value it already has would never distinguish visited from unvisited neighbors.","truth_value":"IN","source":"entries/2026/06/06/flood-fill-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"flood-fill-color-guard-termination","truth_value":"IN","reason":"premise"}]}}