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.
This problem is not that much intuative at first you have to understand why u are dividing problem in to subproblem. This is not exactly dp idea but by going in both direction makes sure that our answer is currect. Instead of processing both site at a time divide and conquer by merging with max out of both.
Candies
You are viewing a single comment's thread. Return to all comments →
This problem is not that much intuative at first you have to understand why u are dividing problem in to subproblem. This is not exactly dp idea but by going in both direction makes sure that our answer is currect. Instead of processing both site at a time divide and conquer by merging with max out of both.