Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fix coin change #2571
Fix coin change #2571
Conversation
Co-authored-by: Tapajyoti Bose <44058757+ruppysuppy@users.noreply.github.com>
|
Is it really a useful contribution? |
| >>> dp_count([1, 2, 3], -5) | ||
| 0 | ||
| >>> dp_count([4, 5, 6], -4) | ||
| 0 | ||
| >>> dp_count([2, 5, 3, 6], -10) | ||
| 0 | ||
| >>> dp_count([4], -4) | ||
| 0 |
poyea
Oct 1, 2020
Member
| >>> dp_count([1, 2, 3], -5) | |
| 0 | |
| >>> dp_count([4, 5, 6], -4) | |
| 0 | |
| >>> dp_count([2, 5, 3, 6], -10) | |
| 0 | |
| >>> dp_count([4], -4) | |
| 0 | |
| >>> dp_count([1, 2, 3], -5) | |
| 0 |
I think 1 test case for this is enough.
himadriganguly
Oct 1, 2020
Author
Contributor
@poyea You said to add some more test cases in the previous comment?
poyea
Oct 5, 2020
Member
I mean to test the < 0 line, one test case is enough. You may add some larger test cases too to demonstrate the correctness.
|
Can you change the title of the pull request to something like |
|
@poyea done the changes have a look. |
Describe your change:
Removed unused variable and modified code for coin_chainge algo.
Checklist:
Fixes: #{$ISSUE_NO}.