mixture problem in medium concept

how to solve problems like mixture in medium level


please help

this is a dynamic programming problem. Can be solved similar to the classical matrix multiplication problem where you need to place brackets to minimize the number of multiplications.

3 Likes