We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Take the minimization of the problem where you decrement from one person from your set of {1,3,4} instead of adding to all but one {1,3,4}. I see no Dynamic Programming.
Can you list out
1. principal of optimality
2. optimal recursive substructure
3. recurring sub problems?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Equal
You are viewing a single comment's thread. Return to all comments →
I disagree, I still think it will be greedy.
Take the minimization of the problem where you decrement from one person from your set of {1,3,4} instead of adding to all but one {1,3,4}. I see no Dynamic Programming.
Can you list out 1. principal of optimality 2. optimal recursive substructure 3. recurring sub problems?