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>三步问题。有个小孩正在上楼梯,楼梯有n阶台阶,小孩一次可以上1阶、2阶或3阶。实现一种方法,计算小孩有多少种上楼梯的方式。结果可能很大,你需要对结果模1000000007。</p>\n\n<p> <strong>示例1:</strong></p>\n\n<pre>\n<strong> 输入</strong>:n = 3 \n<strong> 输出</strong>:4\n<strong> 说明</strong>: 有四种走法\n</pre>\n\n<p> <strong>示例2:</strong></p>\n\n<pre>\n<strong> 输入</strong>:n = 5\n<strong> 输出</strong>:13\n</pre>\n\n<p> <strong>提示:</strong></p>\n\n<ol>\n<li>n范围在[1, 1000000]之间</li>\n</ol>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 76,
|
||||
"likes": 79,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"49.5K\", \"totalSubmission\": \"135.9K\", \"totalAcceptedRaw\": 49491, \"totalSubmissionRaw\": 135934, \"acRate\": \"36.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"50.8K\", \"totalSubmission\": \"139.2K\", \"totalAcceptedRaw\": 50804, \"totalSubmissionRaw\": 139212, \"acRate\": \"36.5%\"}",
|
||||
"hints": [
|
||||
"自上而下地处理这个问题。小孩的最后一跳是什么?",
|
||||
"如果知道跳到第100级台阶之前的每一级台阶的跳法数量,可以计算第100级台阶的跳法数量吗?",
|
||||
|
Reference in New Issue
Block a user