It will store the minimum product till a given cell ( for - ve elements )
minPath = [ [ 0 for i in range ( M ) ] for j in range ( N ) ] ; NEW_LINE for i in range ( N ) : NEW_LINE INDENT for j in range ( M ) : NEW_LINE INDENT minVal = sys . maxsize ; NEW_LINE maxVal = - sys . maxsize ; NEW_LINE DEDENT DEDENT