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.
The Coin Change Problem
The Coin Change Problem
Sort by
recency
|
747 Discussions
|
Please Login in order to post a comment
State transition: for each coin c[j] and fix to be the next (also largest) coin from the last step (i.e. i-c[j])
Edge cases:
My super non-slick code. Passed all tests though.
def getWays(n, c): # Write your code here
JS Javascript solution passes all tests:
sorting is done in order to understand how denomination is formed