Skip to content

修改 0054.替换数字.md Java版本解法二 #2933

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

UserXSX
Copy link

@UserXSX UserXSX commented May 1, 2025

No description provided.

@UserXSX
Copy link
Author

UserXSX commented May 1, 2025

取出字符串中的字符后,为了判断该字符是不是数字字符,应该将其和字符常量 '0' 比较,而不是和整型常量 0 比较。题目中说明输入字符串只包含小写字母和数字字符,所以原本的写法也能提交通过。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant