Help in Coloring the Connected Components

Can someone suggest some Questions one “Flood Fill - Labeling/Coloring the Connected Components” and some good reading blogs as well?

Fill the matrix(codechef)

Feasible relation(hackerearth)

The second problem is a bit easy so i suggest you to start with that , and the first one is really interesting.
Hope you enjoy solving them.

1 Like