flood-fill-linear-time

Status: IN

Each pixel is visited at most once in flood fill, giving O(m*n) time and O(m*n) worst-case stack depth for pathological grid shapes like spirals.

Source: entries/2026/06/06/flood-fill-solution.md

JSON