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

[bug][go] zuo-xuan-zhuan-zi-fu-chuan-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/zuo-xuan-zhuan-zi-fu-chuan-lcof/

报错信息

Line 2: panic: runtime error: slice bounds out of range [2:0]
panic: runtime error: slice bounds out of range [2:0]
main.reverseLeftWords(...)
solution.go, line 2
main.__helper__(...)
solution.go, line 8
main.main()
solution.go, line 47
Result: "", "", "", "", ""

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

  • [ ] 我愿意!

labuladong avatar Mar 26 '23 09:03 labuladong