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][python] open-the-lock/description #1556

Open
2 tasks done
LzMingYueShanPao opened this issue Mar 6, 2024 · 1 comment
Open
2 tasks done

[bug][python] open-the-lock/description #1556

LzMingYueShanPao opened this issue Mar 6, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@LzMingYueShanPao
Copy link

请在提交 bug 之前先搜索

  • 我已经搜索过 issues,没有发现相同的 bug。

出错的题目链接

https://leetcode.cn/problems/open-the-lock/description/

报错信息

TypeError: Solution.plusOne() takes 2 positional arguments but 3 were given
^^^^^^^^^^^^^^^^^^^^
up = self.plusOne(cur, j)
Line 20 in openLock (Solution.py)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ret = Solution().openLock(param_1, param_2)
Line 71 in _driver (Solution.py)
_driver()
Line 82 in (Solution.py)

你是否愿意提交 PR 修复这个 bug?

  • 我愿意!
@LzMingYueShanPao LzMingYueShanPao added the help wanted Extra attention is needed label Mar 6, 2024
@LzMingYueShanPao
Copy link
Author

应该为plusOne()和minusOne()方法的形参添加self,并在调用时使用self.plusOne()和self.minusOne()的形式调用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant