Saturday, February 3, 2018

Array of array products

Feb. 3, 2018

Introduction


It is the time to write the algorithm in less than 10 minutes. The algorithm is called Array of array products. Once the dynamic programming idea is used, all I have to remember is to do one multiplication from left to right iteration, but from right to left iteration, two multiplications are needed, one is to multiply the left product with right product, and then apply dynamic programming to right product using one multiplication.


Code review


Here is C# code.


No comments:

Post a Comment