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}] {serialize-and-deserialize-binary-tree} #1555

Open
2 tasks done
LzMingYueShanPao opened this issue Feb 29, 2024 · 0 comments
Open
2 tasks done

[bug][{python}] {serialize-and-deserialize-binary-tree} #1555

LzMingYueShanPao opened this issue Feb 29, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@LzMingYueShanPao
Copy link

请在提交 bug 之前先搜索

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

出错的题目链接

https://leetcode.cn/problems/serialize-and-deserialize-binary-tree/

报错信息

AttributeError: 'NoneType' object has no attribute 'append'

在python中sb是空列表,不能连续进行append操作,需要分两步进行append,如:
sb.append(self.NULL)
sb.append(self.SEP)

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

  • 我愿意!
@LzMingYueShanPao LzMingYueShanPao added the help wanted Extra attention is needed label Feb 29, 2024
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