fucking-algorithm icon indicating copy to clipboard operation
fucking-algorithm copied to clipboard

[bug][python] shu-ju-liu-zhong-de-zhong-wei-shu-lcof

Open labuladong opened this issue 2 years ago • 0 comments

此 issue 的目的是修复 chatGPT 转译的多语言代码,更详细的背景信息和修复流程见:https://github.com/labuladong/fucking-algorithm/issues/1113

请在提交 bug 之前先搜索

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

出错的题目链接

https://leetcode.cn/problems/shu-ju-liu-zhong-de-zhong-wei-shu-lcof/

报错信息

Line 29: TypeError: '>' not supported between instances of 'function' and 'int'
TypeError: '>' not supported between instances of 'function' and 'int'
    if self.maxsize > 0:
Line 134 in put (/usr/lib/python3.10/queue.py)
    self.small.put(num)
Line 29 in addNum (Solution.py)
    result = obj.addNum(
Line 43 in __helper_select_method__ (Solution.py)
    ret.append(__DriverSolution__().__helper_select_method__(method, params[index], obj))
Line 87 in _driver (Solution.py)
    _driver()
Line 96 in <module> (Solution.py)

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

  • [ ] 我愿意!

labuladong avatar Mar 26 '23 09:03 labuladong