Matrix Chain Multiplication
Given the dimensions of a chain of compatible matrices, return the minimum number of scalar multiplications needed to multiply them without changing their order.
Given the dimensions of a chain of compatible matrices, return the minimum number of scalar multiplications needed to multiply them without changing their order.