MATRIX CHAIN MULTIPLICATION

INCORRECT OUTPUT

Line number 32 , dp[100][100] =-1
Will only make dp[0][0] =-1 to convert every element to -1 use memset or run for loop for same.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.