Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeetCode题解动态规划找硬币 #930

Open
hannatao opened this issue Apr 28, 2020 · 1 comment
Open

LeetCode题解动态规划找硬币 #930

hannatao opened this issue Apr 28, 2020 · 1 comment
Labels
bug 错误

Comments

@hannatao
Copy link

当amount为0时,期望返回结果为0,当前代码返回为-1。
在程序开始应该加入判断
if (amount == 0) { return 0; }

@CyC2018
Copy link
Owner

CyC2018 commented Nov 1, 2020

@hannatao 已修复,谢谢指正

@CyC2018 CyC2018 added the bug 错误 label Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 错误
Projects
None yet
Development

No branches or pull requests

3 participants
@hannatao @CyC2018 and others