Skip to content

Conversation

@tntC4stl3
Copy link
Contributor

将TreeNode转换成slice的时候,应该使用 structures.Tree2ints 按行还原,而不应该使用 structures.Tree2Preorder,否则问题中的例子会输出 [4 7 9 6 2 3 1],而不是[4 7 2 9 6 3 1]

@halfrost halfrost merged commit f376eaf into halfrost:master Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants