when i submitted my code in maximum square then it say required from here.Why this is happening ?
C++? It's general problem. Sometimes I get the same error. In such cases I just compile the solution on my local PC. It produces the full log, not a part of it.
I was getting the same error in my code. The problem was in the recursive step of the substructure where i was using min to find minimum of three numbers :
m[r][c] += min(m[r-1][c], m[r][c-1], m[r-1][c-1]);
m[r][c] += min(m[r-1][c], min(m[r][c-1], m[r-1][c-1]));
I hope it helps! :)
@qoinqoder Thanks! it helps me a lot! :-)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.