Python intitializa una matriz 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)]