Driver code
int main ( ) { int sourceRow = 3 , sourceCol = 3 ; int grid [ row ] [ col ] = { 1 , 1 , 1 , 1 , 0 , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 1 , 0 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , 1 , 0 , 1 , 0 } ; cout << findMinPathminDistance ( grid , sourceRow , sourceCol ) ; return 0 ; }