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 wonder if the official answers are correct. For the run case getWays(4, [1,2,3]), my answer is 2 ({2, 2} and {1, 3}), but the official answer is 4. For the run case getWays(10, [2,5,3,6]), my answer is 12 but the official answer is 5.
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 →
I wonder if the official answers are correct. For the run case getWays(4, [1,2,3]), my answer is 2 ({2, 2} and {1, 3}), but the official answer is 4. For the run case getWays(10, [2,5,3,6]), my answer is 12 but the official answer is 5.