Python Intitialize 2D -матрица
# initialize a matrix of rowxcol with -1
dp = [[-1]*col for _ in range(row)]
Wojak's distant cousin
# initialize a matrix of rowxcol with -1
dp = [[-1]*col for _ in range(row)]