C ++ program to find distance of nearest cell having 1 in a binary matrix .
#include <bits/stdc++.h> NEW_LINE #define MAX  500 NEW_LINE #define N  3 NEW_LINE #define M  4 NEW_LINE using namespace std ;