mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-21 21:16:45 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p><strong>斐波那契数</strong> (通常用 <code>F(n)</code> 表示)形成的序列称为 <strong>斐波那契数列</strong> 。该数列由 <code>0</code> 和 <code>1</code> 开始,后面的每一项数字都是前面两项数字的和。也就是:</p>\n\n<pre>\nF(0) = 0,F(1) = 1\nF(n) = F(n - 1) + F(n - 2),其中 n > 1\n</pre>\n\n<p>给定 <code>n</code> ,请计算 <code>F(n)</code> 。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 2\n<strong>输出:</strong>1\n<strong>解释:</strong>F(2) = F(1) + F(0) = 1 + 0 = 1\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 3\n<strong>输出:</strong>2\n<strong>解释:</strong>F(3) = F(2) + F(1) = 1 + 1 = 2\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 4\n<strong>输出:</strong>3\n<strong>解释:</strong>F(4) = F(3) + F(2) = 2 + 1 = 3\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>0 <= n <= 30</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 428,
|
||||
"likes": 430,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Climbing Stairs\", \"titleSlug\": \"climbing-stairs\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u722c\\u697c\\u68af\"}, {\"title\": \"Split Array into Fibonacci Sequence\", \"titleSlug\": \"split-array-into-fibonacci-sequence\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u5c06\\u6570\\u7ec4\\u62c6\\u5206\\u6210\\u6590\\u6ce2\\u90a3\\u5951\\u5e8f\\u5217\"}, {\"title\": \"Length of Longest Fibonacci Subsequence\", \"titleSlug\": \"length-of-longest-fibonacci-subsequence\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u6700\\u957f\\u7684\\u6590\\u6ce2\\u90a3\\u5951\\u5b50\\u5e8f\\u5217\\u7684\\u957f\\u5ea6\"}]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"353.9K\", \"totalSubmission\": \"530.4K\", \"totalAcceptedRaw\": 353872, \"totalSubmissionRaw\": 530449, \"acRate\": \"66.7%\"}",
|
||||
"stats": "{\"totalAccepted\": \"356K\", \"totalSubmission\": \"533.8K\", \"totalAcceptedRaw\": 356008, \"totalSubmissionRaw\": 533782, \"acRate\": \"66.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user