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.
your code is right. However, the website generated codes make you have to add a standard output codes ,like fptr.write(str(ways)) ,before fptr.close(). Besides, your function has to return the output value (ways[l-1][n] rather than printing it (This way the system will regard it as debug)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Coin Change Problem
You are viewing a single comment's thread. Return to all comments →
your code is right. However, the website generated codes make you have to add a standard output codes ,like fptr.write(str(ways)) ,before fptr.close(). Besides, your function has to return the output value (ways[l-1][n] rather than printing it (This way the system will regard it as debug)