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

[bug][{Python}] {interleaving-string}

Open jfweonc opened this issue 2 years ago • 0 comments

请在提交 bug 之前先搜索

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

出错的题目链接

https://leetcode.com/problems/interleaving-string/description/?show=1

报错信息

代码没错,不过comment不对。现comment 如下: # 如果,s1[i] 匹配不了,s2[j] 可以匹配,那么填入 s2[j] 试一下 if j < len(s2) and s2[j] == s3[k]: res = res or dp(s1, i, s2, j + 1, s3) 应该改成: # 如果s2[j] 可以匹配,那么填入 s2[j] 试一下

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

  • [X] 我愿意!

jfweonc avatar Jun 04 '23 04:06 jfweonc