mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-24 14:28:56 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>二叉树数据结构<code>TreeNode</code>可用来表示单向链表(其中<code>left</code>置空,<code>right</code>为下一个链表节点)。实现一个方法,把二叉搜索树转换为单向链表,要求依然符合二叉搜索树的性质,转换操作应是原址的,也就是在原始的二叉搜索树上直接修改。</p>\n\n<p>返回转换后的单向链表的头节点。</p>\n\n<p><strong>注意:</strong>本题相对原题稍作改动</p>\n\n<p> </p>\n\n<p><strong>示例:</strong></p>\n\n<pre><strong>输入:</strong> [4,2,5,1,3,null,6,0]\n<strong>输出:</strong> [0,null,1,null,2,null,3,null,4,null,5,null,6]\n</pre>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li>节点数量不会超过 100000。</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 100,
|
||||
"likes": 104,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -167,7 +167,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"24.5K\", \"totalSubmission\": \"38.6K\", \"totalAcceptedRaw\": 24485, \"totalSubmissionRaw\": 38561, \"acRate\": \"63.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"25.1K\", \"totalSubmission\": \"39.5K\", \"totalAcceptedRaw\": 25081, \"totalSubmissionRaw\": 39499, \"acRate\": \"63.5%\"}",
|
||||
"hints": [
|
||||
"尝试递归解法。",
|
||||
"这样想:如果你有convertLeft和convertRight方法(它们可以把左右子树转换成双链表),你能使用它们把整个树转换成双链表吗?",
|
||||
|
||||
Reference in New Issue
Block a user