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

[bug][{java}] {shu-zu-zhong-zhong-fu-de-shu-zi-lcof} #1415

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

Conversation

ttb1534
Copy link

@ttb1534 ttb1534 commented Jun 14, 2023

Fixes #1386

我修改的是如下题目的 java 解法,包括其他版本语言也一并修改了:
https://leetcode.cn/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof

通过截图如下:

java通过截图

修改原因:原代码对特殊情况的处理有些问题(最终返回值不应该是0,而应该是0对应的索引值),导致某些测试用例无法通过,所以修改了部分代码,但整体思想没有改变,所有语言都通过了测试

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

Successfully merging this pull request may close these issues.

[bug][{java}] {shu-zu-zhong-zhong-fu-de-shu-zi-lcof}
1 participant