Driver code
sourceRow = 3 NEW_LINE sourceCol = 3 NEW_LINE 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 ] ] NEW_LINE print ( findMinPathminDistance ( grid , sourceRow , sourceCol ) ) NEW_LINE