mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>从左向右遍历一个数组,通过不断将其中的元素插入树中可以逐步地生成一棵二叉搜索树。</p>\n\n<p>给定一个由<strong>不同节点</strong>组成的二叉搜索树 <code>root</code>,输出所有可能生成此树的数组。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入: </strong>root = [2,1,3]\n<strong>输出: </strong>[[2,1,3],[2,3,1]]\n解释: 数组 [2,1,3]、[2,3,1] 均可以通过从左向右遍历元素插入树中形成以下二叉搜索树\n 2 \n / \\ \n 1 3\n</pre>\n\n<p><meta charset=\"UTF-8\" /></p>\n\n<p><strong>示例</strong><strong> 2:</strong></p>\n\n<pre>\n<strong>输入: </strong>root = [4,1,null,null,3,2]\n<strong>输出: </strong>[[4,1,3,2]]\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li>二叉搜索树中的节点数在<meta charset=\"UTF-8\" /> <code>[0, 1000]</code> 的范围内</li>\n\t<li><code>1 <= 节点值 <= 10^6</code></li>\n\t<li>\n\t<p>用例保证符合要求的数组数量不超过 <code>5000</code></p>\n\t</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 88,
|
||||
"likes": 89,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"8.3K\", \"totalSubmission\": \"17.2K\", \"totalAcceptedRaw\": 8271, \"totalSubmissionRaw\": 17176, \"acRate\": \"48.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"8.5K\", \"totalSubmission\": \"17.8K\", \"totalAcceptedRaw\": 8543, \"totalSubmissionRaw\": 17753, \"acRate\": \"48.1%\"}",
|
||||
"hints": [
|
||||
"每个数组中的第一个值是多少?",
|
||||
"根是每个数组中必须包含的第一个值。相对于右子树中的值,左子树中的值顺序如何?左子树值是否需要在右子树之前插入?",
|
||||
|
Reference in New Issue
Block a user