Is there a way initialize a matrix(2D array) with some default values(-1)
I was going through a dp problem, there I have to initialize the matrix with default(-1) values for memoized solution. And felt the need.
I was going through a dp problem, there I have to initialize the matrix with default(-1) values for memoized solution. And felt the need.