Finding Contiguous Regions in a Coloured Grid

Press the solve button to show the solution visualization. Solve all at once to see the correct counts appear instantly. After a successful demo, you can generate a new graph to go again.

Regions go from their own color to grey (burned) as they are computed. So when you use the fast solver, everything turns grey.