https://ide.codingblocks.com/s/467546 in matrix chain multiplication i am getting 6 what does 6 signifies
For given array output should be 30 because minimum cost is 30
hello @shrutikatyal
a) ur r not declaring array correclty.
it should be
int a[]={ value1,value2,};
b) u cant use a.size() to get the size of array. array dont have size function.
u nee to explicitly pass the array size inside function.
c) declare ur val variable inside for loop.
d) the correct answer for ur input should be 26.
the number 26 , tells that u need 26 operation to multiply all the given matrix