Driver code
public static void main ( String args [ ] ) { int sourceRow = 3 , sourceCol = 3 ; int grid [ ] [ ] = { { 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 } } ; System . out . println ( findMinPathminDistance ( grid , sourceRow , sourceCol ) ) ; } }