You are viewing a single comment's thread. Return to all comments →
when sum is zero, a valid selection of coins would be null set i.e., {}, and thats why return 1
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 →
when sum is zero, a valid selection of coins would be null set i.e., {}, and thats why return 1