Quote:
Dynamic programming - order of operation
This problem is not related to 'Dynamic programming' unless your algorithm is very bad.
All the interest of those challenges is to proof your skills at finding the correct or best algorithm.
This problem is exactly the same as:
Distance algorithm - minimum coins required to clear all the level[
^] posted yesterday.
Quote:
I am seeking answers to get an insight on the approach to be taken to solve this problem.
Advice: Take a sheet of paper and a pencil and solve the problem by hand. Try bigger samples and see how you find best answer by hand. The way you solve the problem is your algorithm.