mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 05:26:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>在一棵无限的二叉树上,每个节点都有两个子节点,树中的节点 <strong>逐行</strong> 依次按 “之” 字形进行标记。</p>\n\n<p>如下图所示,在奇数行(即,第一行、第三行、第五行……)中,按从左到右的顺序进行标记;</p>\n\n<p>而偶数行(即,第二行、第四行、第六行……)中,按从右到左的顺序进行标记。</p>\n\n<p><img alt=\"\" src=\"https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2019/06/28/tree.png\" style=\"height: 138px; width: 300px;\"></p>\n\n<p>给你树上某一个节点的标号 <code>label</code>,请你返回从根节点到该标号为 <code>label</code> 节点的路径,该路径是由途经的节点标号所组成的。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong>label = 14\n<strong>输出:</strong>[1,3,4,14]\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong>label = 26\n<strong>输出:</strong>[1,2,6,10,26]\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= label <= 10^6</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 172,
|
||||
"likes": 173,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"29.9K\", \"totalSubmission\": \"39.3K\", \"totalAcceptedRaw\": 29897, \"totalSubmissionRaw\": 39333, \"acRate\": \"76.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"30.2K\", \"totalSubmission\": \"39.7K\", \"totalAcceptedRaw\": 30184, \"totalSubmissionRaw\": 39708, \"acRate\": \"76.0%\"}",
|
||||
"hints": [
|
||||
"Based on the label of the current node, find what the label must be for the parent of that node."
|
||||
],
|
||||
|
Reference in New Issue
Block a user