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.
i used it to minimize the difference between a and b, but it seems that greedy is not the approach this time. do you think if i memorize every path i perform and choose the best is a good idea? the spatial complexity is a lot higher in my opinion
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Down to Zero II
You are viewing a single comment's thread. Return to all comments →
i used it to minimize the difference between a and b, but it seems that greedy is not the approach this time. do you think if i memorize every path i perform and choose the best is a good idea? the spatial complexity is a lot higher in my opinion