C ++ Program to Color a grid such that all same color cells are connected either horizontally or vertically
#include <bits/stdc++.h> NEW_LINE using namespace std ; void solve ( vector < int > & arr , int r , int c ) {