1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-02 22:13:28 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>请实现两个函数,分别用来序列化和反序列化二叉树。</p>\n\n<p>你需要设计一个算法来实现二叉树的序列化与反序列化。这里不限定你的序列 / 反序列化算法执行逻辑,你只需要保证一个二叉树可以被序列化为一个字符串并且将这个字符串反序列化为原始的树结构。</p>\n\n<p><strong>提示:</strong>输入输出格式与 LeetCode 目前使用的方式一致,详情请参阅&nbsp;<a href=\"https://support.leetcode-cn.com/hc/kb/article/1194353/\">LeetCode 序列化二叉树的格式</a>。你并非必须采取这种方式,你也可以采用其他的方法解决这个问题。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例:</strong></p>\n<img alt=\"\" src=\"https://assets.leetcode.com/uploads/2020/09/15/serdeser.jpg\" style=\"width: 442px; height: 324px;\" />\n<pre>\n<strong>输入:</strong>root = [1,2,3,null,null,4,5]\n<strong>输出:</strong>[1,2,3,null,null,4,5]\n</pre>\n\n<p>&nbsp;</p>\n\n<p>注意:本题与主站 297 题相同:<a href=\"https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/\">https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/</a></p>\n",
"isPaidOnly": false,
"difficulty": "Hard",
"likes": 283,
"likes": 294,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -107,7 +107,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"97.4K\", \"totalSubmission\": \"171.8K\", \"totalAcceptedRaw\": 97358, \"totalSubmissionRaw\": 171794, \"acRate\": \"56.7%\"}",
"stats": "{\"totalAccepted\": \"101.6K\", \"totalSubmission\": \"178.7K\", \"totalAcceptedRaw\": 101568, \"totalSubmissionRaw\": 178699, \"acRate\": \"56.8%\"}",
"hints": [],
"solution": null,
"status": null,