forked from doocs/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlcof.json
1 lines (1 loc) · 153 KB
/
lcof.json
1
[{"id": 100347, "frontend_id": "\u9762\u8bd5\u989868 - II", "title": "\u4e8c\u53c9\u6811\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148", "title_cn": "\u4e8c\u53c9\u6811\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u7ed9\u5b9a\u4e00\u4e2a\u4e8c\u53c9\u6811, \u627e\u5230\u8be5\u6811\u4e2d\u4e24\u4e2a\u6307\u5b9a\u8282\u70b9\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148\u3002</p>\n\n<p><a href=\"https://baike.baidu.com/item/%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88/8918834?fr=aladdin\" target=\"_blank\">\u767e\u5ea6\u767e\u79d1</a>\u4e2d\u6700\u8fd1\u516c\u5171\u7956\u5148\u7684\u5b9a\u4e49\u4e3a\uff1a“\u5bf9\u4e8e\u6709\u6839\u6811 T \u7684\u4e24\u4e2a\u7ed3\u70b9 p\u3001q\uff0c\u6700\u8fd1\u516c\u5171\u7956\u5148\u8868\u793a\u4e3a\u4e00\u4e2a\u7ed3\u70b9 x\uff0c\u6ee1\u8db3 x \u662f p\u3001q \u7684\u7956\u5148\u4e14 x \u7684\u6df1\u5ea6\u5c3d\u53ef\u80fd\u5927\uff08<strong>\u4e00\u4e2a\u8282\u70b9\u4e5f\u53ef\u4ee5\u662f\u5b83\u81ea\u5df1\u7684\u7956\u5148</strong>\uff09\u3002”</p>\n\n<p>\u4f8b\u5982\uff0c\u7ed9\u5b9a\u5982\u4e0b\u4e8c\u53c9\u6811: root = [3,5,1,6,2,0,8,null,null,7,4]</p>\n\n<p><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2018/12/15/binarytree.png\"></p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 1\n<strong>\u8f93\u51fa:</strong> 3\n<strong>\u89e3\u91ca: </strong>\u8282\u70b9 <code>5 </code>\u548c\u8282\u70b9 <code>1 </code>\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148\u662f\u8282\u70b9 <code>3\u3002</code>\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 4\n<strong>\u8f93\u51fa:</strong> 5\n<strong>\u89e3\u91ca: </strong>\u8282\u70b9 <code>5 </code>\u548c\u8282\u70b9 <code>4 </code>\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148\u662f\u8282\u70b9 <code>5\u3002</code>\u56e0\u4e3a\u6839\u636e\u5b9a\u4e49\u6700\u8fd1\u516c\u5171\u7956\u5148\u8282\u70b9\u53ef\u4ee5\u4e3a\u8282\u70b9\u672c\u8eab\u3002\n</pre>\n\n<p> </p>\n\n<p><strong>\u8bf4\u660e:</strong></p>\n\n<ul>\n\t<li>\u6240\u6709\u8282\u70b9\u7684\u503c\u90fd\u662f\u552f\u4e00\u7684\u3002</li>\n\t<li>p\u3001q \u4e3a\u4e0d\u540c\u8282\u70b9\u4e14\u5747\u5b58\u5728\u4e8e\u7ed9\u5b9a\u7684\u4e8c\u53c9\u6811\u4e2d\u3002</li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 236 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-tree/\">https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-tree/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-shu-de-zui-jin-gong-gong-zu-xian-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9868%20-%20II.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9868%20-%20II.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88/README.md", "tags": ["Tree"], "tags_cn": ["\u6811"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100346, "frontend_id": "\u9762\u8bd5\u989868 - I", "title": "\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148", "title_cn": "\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u7ed9\u5b9a\u4e00\u4e2a\u4e8c\u53c9\u641c\u7d22\u6811, \u627e\u5230\u8be5\u6811\u4e2d\u4e24\u4e2a\u6307\u5b9a\u8282\u70b9\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148\u3002</p>\n\n<p><a href=\"https://baike.baidu.com/item/%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88/8918834?fr=aladdin\" target=\"_blank\">\u767e\u5ea6\u767e\u79d1</a>\u4e2d\u6700\u8fd1\u516c\u5171\u7956\u5148\u7684\u5b9a\u4e49\u4e3a\uff1a“\u5bf9\u4e8e\u6709\u6839\u6811 T \u7684\u4e24\u4e2a\u7ed3\u70b9 p\u3001q\uff0c\u6700\u8fd1\u516c\u5171\u7956\u5148\u8868\u793a\u4e3a\u4e00\u4e2a\u7ed3\u70b9 x\uff0c\u6ee1\u8db3 x \u662f p\u3001q \u7684\u7956\u5148\u4e14 x \u7684\u6df1\u5ea6\u5c3d\u53ef\u80fd\u5927\uff08<strong>\u4e00\u4e2a\u8282\u70b9\u4e5f\u53ef\u4ee5\u662f\u5b83\u81ea\u5df1\u7684\u7956\u5148</strong>\uff09\u3002”</p>\n\n<p>\u4f8b\u5982\uff0c\u7ed9\u5b9a\u5982\u4e0b\u4e8c\u53c9\u641c\u7d22\u6811: root = [6,2,8,0,4,7,9,null,null,3,5]</p>\n\n<p><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2018/12/14/binarysearchtree_improved.png\"></p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 8\n<strong>\u8f93\u51fa:</strong> 6 \n<strong>\u89e3\u91ca: </strong>\u8282\u70b9 <code>2 </code>\u548c\u8282\u70b9 <code>8 </code>\u7684\u6700\u8fd1\u516c\u5171\u7956\u5148\u662f <code>6\u3002</code>\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 4\n<strong>\u8f93\u51fa:</strong> 2\n<strong>\u89e3\u91ca: </strong>\u8282\u70b9 <code>2</code> \u548c\u8282\u70b9 <code>4</code> \u7684\u6700\u8fd1\u516c\u5171\u7956\u5148\u662f <code>2</code>, \u56e0\u4e3a\u6839\u636e\u5b9a\u4e49\u6700\u8fd1\u516c\u5171\u7956\u5148\u8282\u70b9\u53ef\u4ee5\u4e3a\u8282\u70b9\u672c\u8eab\u3002</pre>\n\n<p> </p>\n\n<p><strong>\u8bf4\u660e:</strong></p>\n\n<ul>\n\t<li>\u6240\u6709\u8282\u70b9\u7684\u503c\u90fd\u662f\u552f\u4e00\u7684\u3002</li>\n\t<li>p\u3001q \u4e3a\u4e0d\u540c\u8282\u70b9\u4e14\u5747\u5b58\u5728\u4e8e\u7ed9\u5b9a\u7684\u4e8c\u53c9\u641c\u7d22\u6811\u4e2d\u3002</li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 235 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-search-tree/\">https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-search-tree/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-sou-suo-shu-de-zui-jin-gong-gong-zu-xian-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9868%20-%20I.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9868%20-%20I.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88/README.md", "tags": ["Tree"], "tags_cn": ["\u6811"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100345, "frontend_id": "\u9762\u8bd5\u989864", "title": "\u6c421+2+\u2026+n", "title_cn": "\u6c421+2+\u2026+n", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u6c42 <code>1+2+...+n</code> \uff0c\u8981\u6c42\u4e0d\u80fd\u4f7f\u7528\u4e58\u9664\u6cd5\u3001for\u3001while\u3001if\u3001else\u3001switch\u3001case\u7b49\u5173\u952e\u5b57\u53ca\u6761\u4ef6\u5224\u65ad\u8bed\u53e5\uff08A?B:C\uff09\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> n = 3\n<strong>\u8f93\u51fa: </strong>6\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> n = 9\n<strong>\u8f93\u51fa: </strong>45\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= n <= 10000</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/qiu-12n-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9864.%20%E6%B1%821%2B2%2B%E2%80%A6%2Bn/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9864.%20%E6%B1%821%2B2%2B%E2%80%A6%2Bn/README.md", "tags": [], "tags_cn": [], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100344, "frontend_id": "\u9762\u8bd5\u989863", "title": "\u80a1\u7968\u7684\u6700\u5927\u5229\u6da6", "title_cn": "\u80a1\u7968\u7684\u6700\u5927\u5229\u6da6", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5047\u8bbe\u628a\u67d0\u80a1\u7968\u7684\u4ef7\u683c\u6309\u7167\u65f6\u95f4\u5148\u540e\u987a\u5e8f\u5b58\u50a8\u5728\u6570\u7ec4\u4e2d\uff0c\u8bf7\u95ee\u4e70\u5356\u8be5\u80a1\u7968\u4e00\u6b21\u53ef\u80fd\u83b7\u5f97\u7684\u6700\u5927\u5229\u6da6\u662f\u591a\u5c11\uff1f</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [7,1,5,3,6,4]\n<strong>\u8f93\u51fa:</strong> 5\n<strong>\u89e3\u91ca: </strong>\u5728\u7b2c 2 \u5929\uff08\u80a1\u7968\u4ef7\u683c = 1\uff09\u7684\u65f6\u5019\u4e70\u5165\uff0c\u5728\u7b2c 5 \u5929\uff08\u80a1\u7968\u4ef7\u683c = 6\uff09\u7684\u65f6\u5019\u5356\u51fa\uff0c\u6700\u5927\u5229\u6da6 = 6-1 = 5 \u3002\n \u6ce8\u610f\u5229\u6da6\u4e0d\u80fd\u662f 7-1 = 6, \u56e0\u4e3a\u5356\u51fa\u4ef7\u683c\u9700\u8981\u5927\u4e8e\u4e70\u5165\u4ef7\u683c\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [7,6,4,3,1]\n<strong>\u8f93\u51fa:</strong> 0\n<strong>\u89e3\u91ca: </strong>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b, \u6ca1\u6709\u4ea4\u6613\u5b8c\u6210, \u6240\u4ee5\u6700\u5927\u5229\u6da6\u4e3a 0\u3002</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u6570\u7ec4\u957f\u5ea6 <= 10^5</code></p>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u672c\u9898\u4e0e\u4e3b\u7ad9 121 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/best-time-to-buy-and-sell-stock/\">https://leetcode.cn/problems/best-time-to-buy-and-sell-stock/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/gu-piao-de-zui-da-li-run-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9863.%20%E8%82%A1%E7%A5%A8%E7%9A%84%E6%9C%80%E5%A4%A7%E5%88%A9%E6%B6%A6/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9863.%20%E8%82%A1%E7%A5%A8%E7%9A%84%E6%9C%80%E5%A4%A7%E5%88%A9%E6%B6%A6/README.md", "tags": ["Dynamic Programming"], "tags_cn": ["\u52a8\u6001\u89c4\u5212"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100343, "frontend_id": "\u9762\u8bd5\u989862", "title": "\u5706\u5708\u4e2d\u6700\u540e\u5269\u4e0b\u7684\u6570\u5b57", "title_cn": "\u5706\u5708\u4e2d\u6700\u540e\u5269\u4e0b\u7684\u6570\u5b57", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>0,1,,n-1\u8fd9n\u4e2a\u6570\u5b57\u6392\u6210\u4e00\u4e2a\u5706\u5708\uff0c\u4ece\u6570\u5b570\u5f00\u59cb\uff0c\u6bcf\u6b21\u4ece\u8fd9\u4e2a\u5706\u5708\u91cc\u5220\u9664\u7b2cm\u4e2a\u6570\u5b57\u3002\u6c42\u51fa\u8fd9\u4e2a\u5706\u5708\u91cc\u5269\u4e0b\u7684\u6700\u540e\u4e00\u4e2a\u6570\u5b57\u3002</p>\n\n<p>\u4f8b\u5982\uff0c0\u30011\u30012\u30013\u30014\u8fd95\u4e2a\u6570\u5b57\u7ec4\u6210\u4e00\u4e2a\u5706\u5708\uff0c\u4ece\u6570\u5b570\u5f00\u59cb\u6bcf\u6b21\u5220\u9664\u7b2c3\u4e2a\u6570\u5b57\uff0c\u5219\u5220\u9664\u7684\u524d4\u4e2a\u6570\u5b57\u4f9d\u6b21\u662f2\u30010\u30014\u30011\uff0c\u56e0\u6b64\u6700\u540e\u5269\u4e0b\u7684\u6570\u5b57\u662f3\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> n = 5, m = 3\n<strong>\u8f93\u51fa: </strong>3\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> n = 10, m = 17\n<strong>\u8f93\u51fa: </strong>2\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= n <= 10^5</code></li>\n\t<li><code>1 <= m <= 10^6</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9862.%20%E5%9C%86%E5%9C%88%E4%B8%AD%E6%9C%80%E5%90%8E%E5%89%A9%E4%B8%8B%E7%9A%84%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9862.%20%E5%9C%86%E5%9C%88%E4%B8%AD%E6%9C%80%E5%90%8E%E5%89%A9%E4%B8%8B%E7%9A%84%E6%95%B0%E5%AD%97/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100342, "frontend_id": "\u9762\u8bd5\u989855 - II", "title": "\u5e73\u8861\u4e8c\u53c9\u6811", "title_cn": "\u5e73\u8861\u4e8c\u53c9\u6811", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u8f93\u5165\u4e00\u68f5\u4e8c\u53c9\u6811\u7684\u6839\u8282\u70b9\uff0c\u5224\u65ad\u8be5\u6811\u662f\u4e0d\u662f\u5e73\u8861\u4e8c\u53c9\u6811\u3002\u5982\u679c\u67d0\u4e8c\u53c9\u6811\u4e2d\u4efb\u610f\u8282\u70b9\u7684\u5de6\u53f3\u5b50\u6811\u7684\u6df1\u5ea6\u76f8\u5dee\u4e0d\u8d85\u8fc71\uff0c\u90a3\u4e48\u5b83\u5c31\u662f\u4e00\u68f5\u5e73\u8861\u4e8c\u53c9\u6811\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<p>\u7ed9\u5b9a\u4e8c\u53c9\u6811 <code>[3,9,20,null,null,15,7]</code></p>\n\n<pre> 3\n / \\\n 9 20\n / \\\n 15 7</pre>\n\n<p>\u8fd4\u56de <code>true</code> \u3002<br>\n<br>\n<strong>\u793a\u4f8b 2:</strong></p>\n\n<p>\u7ed9\u5b9a\u4e8c\u53c9\u6811 <code>[1,2,2,3,3,null,null,4,4]</code></p>\n\n<pre> 1\n / \\\n 2 2\n / \\\n 3 3\n / \\\n 4 4\n</pre>\n\n<p>\u8fd4\u56de <code>false</code> \u3002</p>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= \u6811\u7684\u7ed3\u70b9\u4e2a\u6570 <= 10000</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 110 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/balanced-binary-tree/\">https://leetcode.cn/problems/balanced-binary-tree/</a></p>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/ping-heng-er-cha-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9855%20-%20II.%20%E5%B9%B3%E8%A1%A1%E4%BA%8C%E5%8F%89%E6%A0%91/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9855%20-%20II.%20%E5%B9%B3%E8%A1%A1%E4%BA%8C%E5%8F%89%E6%A0%91/README.md", "tags": ["Tree", "Depth-first Search"], "tags_cn": ["\u6811", "\u6df1\u5ea6\u4f18\u5148\u641c\u7d22"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100341, "frontend_id": "\u9762\u8bd5\u989861", "title": "\u6251\u514b\u724c\u4e2d\u7684\u987a\u5b50", "title_cn": "\u6251\u514b\u724c\u4e2d\u7684\u987a\u5b50", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u4ece\u6251\u514b\u724c\u4e2d\u968f\u673a\u62bd5\u5f20\u724c\uff0c\u5224\u65ad\u662f\u4e0d\u662f\u4e00\u4e2a\u987a\u5b50\uff0c\u5373\u8fd95\u5f20\u724c\u662f\u4e0d\u662f\u8fde\u7eed\u7684\u30022\uff5e10\u4e3a\u6570\u5b57\u672c\u8eab\uff0cA\u4e3a1\uff0cJ\u4e3a11\uff0cQ\u4e3a12\uff0cK\u4e3a13\uff0c\u800c\u5927\u3001\u5c0f\u738b\u4e3a 0 \uff0c\u53ef\u4ee5\u770b\u6210\u4efb\u610f\u6570\u5b57\u3002A \u4e0d\u80fd\u89c6\u4e3a 14\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [1,2,3,4,5]\n<strong>\u8f93\u51fa:</strong> True</pre>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [0,0,1,2,5]\n<strong>\u8f93\u51fa:</strong> True</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p>\u6570\u7ec4\u957f\u5ea6\u4e3a 5 </p>\n\n<p>\u6570\u7ec4\u7684\u6570\u53d6\u503c\u4e3a [0, 13] .</p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/bu-ke-pai-zhong-de-shun-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9861.%20%E6%89%91%E5%85%8B%E7%89%8C%E4%B8%AD%E7%9A%84%E9%A1%BA%E5%AD%90/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9861.%20%E6%89%91%E5%85%8B%E7%89%8C%E4%B8%AD%E7%9A%84%E9%A1%BA%E5%AD%90/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100340, "frontend_id": "\u9762\u8bd5\u989867", "title": "\u628a\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6574\u6570", "title_cn": "\u628a\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6574\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5199\u4e00\u4e2a\u51fd\u6570 StrToInt\uff0c\u5b9e\u73b0\u628a\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6574\u6570\u8fd9\u4e2a\u529f\u80fd\u3002\u4e0d\u80fd\u4f7f\u7528 atoi \u6216\u8005\u5176\u4ed6\u7c7b\u4f3c\u7684\u5e93\u51fd\u6570\u3002</p>\n\n<p> </p>\n\n<p>\u9996\u5148\uff0c\u8be5\u51fd\u6570\u4f1a\u6839\u636e\u9700\u8981\u4e22\u5f03\u65e0\u7528\u7684\u5f00\u5934\u7a7a\u683c\u5b57\u7b26\uff0c\u76f4\u5230\u5bfb\u627e\u5230\u7b2c\u4e00\u4e2a\u975e\u7a7a\u683c\u7684\u5b57\u7b26\u4e3a\u6b62\u3002</p>\n\n<p>\u5f53\u6211\u4eec\u5bfb\u627e\u5230\u7684\u7b2c\u4e00\u4e2a\u975e\u7a7a\u5b57\u7b26\u4e3a\u6b63\u6216\u8005\u8d1f\u53f7\u65f6\uff0c\u5219\u5c06\u8be5\u7b26\u53f7\u4e0e\u4e4b\u540e\u9762\u5c3d\u53ef\u80fd\u591a\u7684\u8fde\u7eed\u6570\u5b57\u7ec4\u5408\u8d77\u6765\uff0c\u4f5c\u4e3a\u8be5\u6574\u6570\u7684\u6b63\u8d1f\u53f7\uff1b\u5047\u5982\u7b2c\u4e00\u4e2a\u975e\u7a7a\u5b57\u7b26\u662f\u6570\u5b57\uff0c\u5219\u76f4\u63a5\u5c06\u5176\u4e0e\u4e4b\u540e\u8fde\u7eed\u7684\u6570\u5b57\u5b57\u7b26\u7ec4\u5408\u8d77\u6765\uff0c\u5f62\u6210\u6574\u6570\u3002</p>\n\n<p>\u8be5\u5b57\u7b26\u4e32\u9664\u4e86\u6709\u6548\u7684\u6574\u6570\u90e8\u5206\u4e4b\u540e\u4e5f\u53ef\u80fd\u4f1a\u5b58\u5728\u591a\u4f59\u7684\u5b57\u7b26\uff0c\u8fd9\u4e9b\u5b57\u7b26\u53ef\u4ee5\u88ab\u5ffd\u7565\uff0c\u5b83\u4eec\u5bf9\u4e8e\u51fd\u6570\u4e0d\u5e94\u8be5\u9020\u6210\u5f71\u54cd\u3002</p>\n\n<p>\u6ce8\u610f\uff1a\u5047\u5982\u8be5\u5b57\u7b26\u4e32\u4e2d\u7684\u7b2c\u4e00\u4e2a\u975e\u7a7a\u683c\u5b57\u7b26\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u6574\u6570\u5b57\u7b26\u3001\u5b57\u7b26\u4e32\u4e3a\u7a7a\u6216\u5b57\u7b26\u4e32\u4ec5\u5305\u542b\u7a7a\u767d\u5b57\u7b26\u65f6\uff0c\u5219\u4f60\u7684\u51fd\u6570\u4e0d\u9700\u8981\u8fdb\u884c\u8f6c\u6362\u3002</p>\n\n<p>\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b\uff0c\u82e5\u51fd\u6570\u4e0d\u80fd\u8fdb\u884c\u6709\u6548\u7684\u8f6c\u6362\u65f6\uff0c\u8bf7\u8fd4\u56de 0\u3002</p>\n\n<p><strong>\u8bf4\u660e\uff1a</strong></p>\n\n<p>\u5047\u8bbe\u6211\u4eec\u7684\u73af\u5883\u53ea\u80fd\u5b58\u50a8 32 \u4f4d\u5927\u5c0f\u7684\u6709\u7b26\u53f7\u6574\u6570\uff0c\u90a3\u4e48\u5176\u6570\u503c\u8303\u56f4\u4e3a [−2<sup>31</sup>, 2<sup>31 </sup>− 1]\u3002\u5982\u679c\u6570\u503c\u8d85\u8fc7\u8fd9\u4e2a\u8303\u56f4\uff0c\u8bf7\u8fd4\u56de INT_MAX (2<sup>31 </sup>− 1) \u6216 INT_MIN (−2<sup>31</sup>) \u3002</p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> "42"\n<strong>\u8f93\u51fa:</strong> 42\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> " -42"\n<strong>\u8f93\u51fa:</strong> -42\n<strong>\u89e3\u91ca: </strong>\u7b2c\u4e00\u4e2a\u975e\u7a7a\u767d\u5b57\u7b26\u4e3a '-', \u5b83\u662f\u4e00\u4e2a\u8d1f\u53f7\u3002\n \u6211\u4eec\u5c3d\u53ef\u80fd\u5c06\u8d1f\u53f7\u4e0e\u540e\u9762\u6240\u6709\u8fde\u7eed\u51fa\u73b0\u7684\u6570\u5b57\u7ec4\u5408\u8d77\u6765\uff0c\u6700\u540e\u5f97\u5230 -42 \u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 3:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> "4193 with words"\n<strong>\u8f93\u51fa:</strong> 4193\n<strong>\u89e3\u91ca:</strong> \u8f6c\u6362\u622a\u6b62\u4e8e\u6570\u5b57 '3' \uff0c\u56e0\u4e3a\u5b83\u7684\u4e0b\u4e00\u4e2a\u5b57\u7b26\u4e0d\u4e3a\u6570\u5b57\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 4:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> "words and 987"\n<strong>\u8f93\u51fa:</strong> 0\n<strong>\u89e3\u91ca:</strong> \u7b2c\u4e00\u4e2a\u975e\u7a7a\u5b57\u7b26\u662f 'w', \u4f46\u5b83\u4e0d\u662f\u6570\u5b57\u6216\u6b63\u3001\u8d1f\u53f7\u3002\n \u56e0\u6b64\u65e0\u6cd5\u6267\u884c\u6709\u6548\u7684\u8f6c\u6362\u3002</pre>\n\n<p><strong>\u793a\u4f8b 5:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> "-91283472332"\n<strong>\u8f93\u51fa:</strong> -2147483648\n<strong>\u89e3\u91ca:</strong> \u6570\u5b57 "-91283472332" \u8d85\u8fc7 32 \u4f4d\u6709\u7b26\u53f7\u6574\u6570\u8303\u56f4\u3002 \n \u56e0\u6b64\u8fd4\u56de INT_MIN (−2<sup>31</sup>) \u3002\n</pre>\n\n<p> </p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 8 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/string-to-integer-atoi/\">https://leetcode.cn/problems/string-to-integer-atoi/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/ba-zi-fu-chuan-zhuan-huan-cheng-zheng-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9867.%20%E6%8A%8A%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%BD%AC%E6%8D%A2%E6%88%90%E6%95%B4%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9867.%20%E6%8A%8A%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%BD%AC%E6%8D%A2%E6%88%90%E6%95%B4%E6%95%B0/README.md", "tags": ["Math", "String"], "tags_cn": ["\u6570\u5b66", "\u5b57\u7b26\u4e32"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100339, "frontend_id": "\u9762\u8bd5\u989860", "title": "n\u4e2a\u9ab0\u5b50\u7684\u70b9\u6570", "title_cn": "n\u4e2a\u9ab0\u5b50\u7684\u70b9\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u628an\u4e2a\u9ab0\u5b50\u6254\u5728\u5730\u4e0a\uff0c\u6240\u6709\u9ab0\u5b50\u671d\u4e0a\u4e00\u9762\u7684\u70b9\u6570\u4e4b\u548c\u4e3as\u3002\u8f93\u5165n\uff0c\u6253\u5370\u51fas\u7684\u6240\u6709\u53ef\u80fd\u7684\u503c\u51fa\u73b0\u7684\u6982\u7387\u3002</p>\n\n<p> </p>\n\n<p>\u4f60\u9700\u8981\u7528\u4e00\u4e2a\u6d6e\u70b9\u6570\u6570\u7ec4\u8fd4\u56de\u7b54\u6848\uff0c\u5176\u4e2d\u7b2c i \u4e2a\u5143\u7d20\u4ee3\u8868\u8fd9 n \u4e2a\u9ab0\u5b50\u6240\u80fd\u63b7\u51fa\u7684\u70b9\u6570\u96c6\u5408\u4e2d\u7b2c i \u5c0f\u7684\u90a3\u4e2a\u7684\u6982\u7387\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> 1\n<strong>\u8f93\u51fa:</strong> [0.16667,0.16667,0.16667,0.16667,0.16667,0.16667]\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> 2\n<strong>\u8f93\u51fa:</strong> [0.02778,0.05556,0.08333,0.11111,0.13889,0.16667,0.13889,0.11111,0.08333,0.05556,0.02778]</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>1 <= n <= 11</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/nge-tou-zi-de-dian-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9860.%20n%E4%B8%AA%E9%AA%B0%E5%AD%90%E7%9A%84%E7%82%B9%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9860.%20n%E4%B8%AA%E9%AA%B0%E5%AD%90%E7%9A%84%E7%82%B9%E6%95%B0/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100338, "frontend_id": "\u9762\u8bd5\u989866", "title": "\u6784\u5efa\u4e58\u79ef\u6570\u7ec4", "title_cn": "\u6784\u5efa\u4e58\u79ef\u6570\u7ec4", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7ed9\u5b9a\u4e00\u4e2a\u6570\u7ec4 <code>A[0,1,…,n-1]</code>\uff0c\u8bf7\u6784\u5efa\u4e00\u4e2a\u6570\u7ec4 <code>B[0,1,…,n-1]</code>\uff0c\u5176\u4e2d <code>B</code> \u4e2d\u7684\u5143\u7d20 <code>B[i]=A[0]×A[1]×…×A[i-1]×A[i+1]×…×A[n-1]</code>\u3002\u4e0d\u80fd\u4f7f\u7528\u9664\u6cd5\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [1,2,3,4,5]\n<strong>\u8f93\u51fa:</strong> [120,60,40,30,24]</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li>\u6240\u6709\u5143\u7d20\u4e58\u79ef\u4e4b\u548c\u4e0d\u4f1a\u6ea2\u51fa 32 \u4f4d\u6574\u6570</li>\n\t<li><code>a.length <= 100000</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/gou-jian-cheng-ji-shu-zu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9866.%20%E6%9E%84%E5%BB%BA%E4%B9%98%E7%A7%AF%E6%95%B0%E7%BB%84/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9866.%20%E6%9E%84%E5%BB%BA%E4%B9%98%E7%A7%AF%E6%95%B0%E7%BB%84/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100337, "frontend_id": "\u9762\u8bd5\u989859 - II", "title": "\u961f\u5217\u7684\u6700\u5927\u503c", "title_cn": "\u961f\u5217\u7684\u6700\u5927\u503c", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u8bf7\u5b9a\u4e49\u4e00\u4e2a\u961f\u5217\u5e76\u5b9e\u73b0\u51fd\u6570 <code>max_value</code> \u5f97\u5230\u961f\u5217\u91cc\u7684\u6700\u5927\u503c\uff0c\u8981\u6c42\u51fd\u6570<code>max_value</code>\u3001<code>push_back</code> \u548c <code>pop_front</code> \u7684<strong>\u5747\u644a</strong>\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662fO(1)\u3002</p>\n\n<p>\u82e5\u961f\u5217\u4e3a\u7a7a\uff0c<code>pop_front</code> \u548c <code>max_value</code> \u9700\u8981\u8fd4\u56de -1</p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> \n["MaxQueue","push_back","push_back","max_value","pop_front","max_value"]\n[[],[1],[2],[],[],[]]\n<strong>\u8f93\u51fa: </strong>[null,null,null,2,1,2]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> \n["MaxQueue","pop_front","max_value"]\n[[],[],[]]\n<strong>\u8f93\u51fa: </strong>[null,-1,-1]\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= push_back,pop_front,max_value\u7684\u603b\u64cd\u4f5c\u6570 <= 10000</code></li>\n\t<li><code>1 <= value <= 10^5</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/dui-lie-de-zui-da-zhi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9859%20-%20II.%20%E9%98%9F%E5%88%97%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9859%20-%20II.%20%E9%98%9F%E5%88%97%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC/README.md", "tags": ["Stack", "Sliding Window"], "tags_cn": ["\u6808"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100336, "frontend_id": "\u9762\u8bd5\u989859 - I", "title": "\u6ed1\u52a8\u7a97\u53e3\u7684\u6700\u5927\u503c", "title_cn": "\u6ed1\u52a8\u7a97\u53e3\u7684\u6700\u5927\u503c", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u7ed9\u5b9a\u4e00\u4e2a\u6570\u7ec4 <code>nums</code> \u548c\u6ed1\u52a8\u7a97\u53e3\u7684\u5927\u5c0f <code>k</code>\uff0c\u8bf7\u627e\u51fa\u6240\u6709\u6ed1\u52a8\u7a97\u53e3\u91cc\u7684\u6700\u5927\u503c\u3002</p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> <em>nums</em> = <code>[1,3,-1,-3,5,3,6,7]</code>, \u548c <em>k</em> = 3\n<strong>\u8f93\u51fa: </strong><code>[3,3,5,5,6,7] \n<strong>\u89e3\u91ca: \n</strong></code>\n \u6ed1\u52a8\u7a97\u53e3\u7684\u4f4d\u7f6e \u6700\u5927\u503c\n--------------- -----\n[1 3 -1] -3 5 3 6 7 3\n 1 [3 -1 -3] 5 3 6 7 3\n 1 3 [-1 -3 5] 3 6 7 5\n 1 3 -1 [-3 5 3] 6 7 5\n 1 3 -1 -3 [5 3 6] 7 6\n 1 3 -1 -3 5 [3 6 7] 7</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<p>\u4f60\u53ef\u4ee5\u5047\u8bbe <em>k </em>\u603b\u662f\u6709\u6548\u7684\uff0c\u5728\u8f93\u5165\u6570\u7ec4\u4e0d\u4e3a\u7a7a\u7684\u60c5\u51b5\u4e0b\uff0c1 ≤ k ≤ \u8f93\u5165\u6570\u7ec4\u7684\u5927\u5c0f\u3002</p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 239 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/sliding-window-maximum/\">https://leetcode.cn/problems/sliding-window-maximum/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/hua-dong-chuang-kou-de-zui-da-zhi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9859%20-%20I.%20%E6%BB%91%E5%8A%A8%E7%AA%97%E5%8F%A3%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9859%20-%20I.%20%E6%BB%91%E5%8A%A8%E7%AA%97%E5%8F%A3%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC/README.md", "tags": ["Stack", "Sliding Window"], "tags_cn": ["\u6808"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100335, "frontend_id": "\u9762\u8bd5\u989865", "title": "\u4e0d\u7528\u52a0\u51cf\u4e58\u9664\u505a\u52a0\u6cd5", "title_cn": "\u4e0d\u7528\u52a0\u51cf\u4e58\u9664\u505a\u52a0\u6cd5", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u6c42\u4e24\u4e2a\u6574\u6570\u4e4b\u548c\uff0c\u8981\u6c42\u5728\u51fd\u6570\u4f53\u5185\u4e0d\u5f97\u4f7f\u7528 “+”\u3001“-”\u3001“*”\u3001“/” \u56db\u5219\u8fd0\u7b97\u7b26\u53f7\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> a = 1, b = 1\n<strong>\u8f93\u51fa:</strong> 2</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>a</code>, <code>b</code> \u5747\u53ef\u80fd\u662f\u8d1f\u6570\u6216 0</li>\n\t<li>\u7ed3\u679c\u4e0d\u4f1a\u6ea2\u51fa 32 \u4f4d\u6574\u6570</li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9865.%20%E4%B8%8D%E7%94%A8%E5%8A%A0%E5%87%8F%E4%B9%98%E9%99%A4%E5%81%9A%E5%8A%A0%E6%B3%95/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9865.%20%E4%B8%8D%E7%94%A8%E5%8A%A0%E5%87%8F%E4%B9%98%E9%99%A4%E5%81%9A%E5%8A%A0%E6%B3%95/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100334, "frontend_id": "\u9762\u8bd5\u989849", "title": "\u4e11\u6570", "title_cn": "\u4e11\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u6211\u4eec\u628a\u53ea\u5305\u542b\u56e0\u5b50 2\u30013 \u548c 5 \u7684\u6570\u79f0\u4f5c\u4e11\u6570\uff08Ugly Number\uff09\u3002\u6c42\u6309\u4ece\u5c0f\u5230\u5927\u7684\u987a\u5e8f\u7684\u7b2c n \u4e2a\u4e11\u6570\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> n = 10\n<strong>\u8f93\u51fa:</strong> 12\n<strong>\u89e3\u91ca: </strong><code>1, 2, 3, 4, 5, 6, 8, 9, 10, 12</code> \u662f\u524d 10 \u4e2a\u4e11\u6570\u3002</pre>\n\n<p><strong>\u8bf4\u660e: </strong> </p>\n\n<ol>\n\t<li><code>1</code> \u662f\u4e11\u6570\u3002</li>\n\t<li><code>n</code> <strong>\u4e0d\u8d85\u8fc7</strong>1690\u3002</li>\n</ol>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 264 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/ugly-number-ii/\">https://leetcode.cn/problems/ugly-number-ii/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/chou-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9849.%20%E4%B8%91%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9849.%20%E4%B8%91%E6%95%B0/README.md", "tags": ["Math"], "tags_cn": ["\u6570\u5b66"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100333, "frontend_id": "\u9762\u8bd5\u989854", "title": "\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u7b2ck\u5927\u8282\u70b9", "title_cn": "\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u7b2ck\u5927\u8282\u70b9", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7ed9\u5b9a\u4e00\u68f5\u4e8c\u53c9\u641c\u7d22\u6811\uff0c\u8bf7\u627e\u51fa\u5176\u4e2d\u7b2ck\u5927\u7684\u8282\u70b9\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> root = [3,1,4,null,2], k = 1\n 3\n / \\\n 1 4\n \\\n 2\n<strong>\u8f93\u51fa:</strong> 4</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> root = [5,3,6,2,4,null,null,1], k = 3\n 5\n / \\\n 3 6\n / \\\n 2 4\n /\n 1\n<strong>\u8f93\u51fa:</strong> 4</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p>1 ≤ k ≤ \u4e8c\u53c9\u641c\u7d22\u6811\u5143\u7d20\u4e2a\u6570</p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9854.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E7%AC%ACk%E5%A4%A7%E8%8A%82%E7%82%B9/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9854.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E7%AC%ACk%E5%A4%A7%E8%8A%82%E7%82%B9/README.md", "tags": ["Tree"], "tags_cn": ["\u6811"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100332, "frontend_id": "\u9762\u8bd5\u989848", "title": "\u6700\u957f\u4e0d\u542b\u91cd\u590d\u5b57\u7b26\u7684\u5b50\u5b57\u7b26\u4e32", "title_cn": "\u6700\u957f\u4e0d\u542b\u91cd\u590d\u5b57\u7b26\u7684\u5b50\u5b57\u7b26\u4e32", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u4ece\u5b57\u7b26\u4e32\u4e2d\u627e\u51fa\u4e00\u4e2a\u6700\u957f\u7684\u4e0d\u5305\u542b\u91cd\u590d\u5b57\u7b26\u7684\u5b50\u5b57\u7b26\u4e32\uff0c\u8ba1\u7b97\u8be5\u6700\u957f\u5b50\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>"abcabcbb"\n<strong>\u8f93\u51fa: </strong>3 \n<strong>\u89e3\u91ca:</strong> \u56e0\u4e3a\u65e0\u91cd\u590d\u5b57\u7b26\u7684\u6700\u957f\u5b50\u4e32\u662f <code>"abc"\uff0c\u6240\u4ee5\u5176</code>\u957f\u5ea6\u4e3a 3\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>"bbbbb"\n<strong>\u8f93\u51fa: </strong>1\n<strong>\u89e3\u91ca: </strong>\u56e0\u4e3a\u65e0\u91cd\u590d\u5b57\u7b26\u7684\u6700\u957f\u5b50\u4e32\u662f <code>"b"</code>\uff0c\u6240\u4ee5\u5176\u957f\u5ea6\u4e3a 1\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 3:</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>"pwwkew"\n<strong>\u8f93\u51fa: </strong>3\n<strong>\u89e3\u91ca: </strong>\u56e0\u4e3a\u65e0\u91cd\u590d\u5b57\u7b26\u7684\u6700\u957f\u5b50\u4e32\u662f <code>"wke"</code>\uff0c\u6240\u4ee5\u5176\u957f\u5ea6\u4e3a 3\u3002\n \u8bf7\u6ce8\u610f\uff0c\u4f60\u7684\u7b54\u6848\u5fc5\u987b\u662f <strong>\u5b50\u4e32 </strong>\u7684\u957f\u5ea6\uff0c<code>"pwke"</code> \u662f\u4e00\u4e2a<em>\u5b50\u5e8f\u5217\uff0c</em>\u4e0d\u662f\u5b50\u4e32\u3002\n</pre>\n\n<p> </p>\n\n<p>\u63d0\u793a\uff1a</p>\n\n<ul>\n\t<li><code>s.length <= 40000</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 3 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/longest-substring-without-repeating-characters/\">https://leetcode.cn/problems/longest-substring-without-repeating-characters/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9848.%20%E6%9C%80%E9%95%BF%E4%B8%8D%E5%90%AB%E9%87%8D%E5%A4%8D%E5%AD%97%E7%AC%A6%E7%9A%84%E5%AD%90%E5%AD%97%E7%AC%A6%E4%B8%B2/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9848.%20%E6%9C%80%E9%95%BF%E4%B8%8D%E5%90%AB%E9%87%8D%E5%A4%8D%E5%AD%97%E7%AC%A6%E7%9A%84%E5%AD%90%E5%AD%97%E7%AC%A6%E4%B8%B2/README.md", "tags": ["Hash Table", "Two Pointers", "Sliding Window"], "tags_cn": ["\u54c8\u5e0c\u8868", "\u53cc\u6307\u9488"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100331, "frontend_id": "\u9762\u8bd5\u989853 - II", "title": "\u7f3a\u5931\u7684\u6570\u5b57", "title_cn": "0\uff5en-1\u4e2d\u7f3a\u5931\u7684\u6570\u5b57", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u4e00\u4e2a\u957f\u5ea6\u4e3an-1\u7684\u9012\u589e\u6392\u5e8f\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u6570\u5b57\u90fd\u662f\u552f\u4e00\u7684\uff0c\u5e76\u4e14\u6bcf\u4e2a\u6570\u5b57\u90fd\u5728\u8303\u56f40\uff5en-1\u4e4b\u5185\u3002\u5728\u8303\u56f40\uff5en-1\u5185\u7684n\u4e2a\u6570\u5b57\u4e2d\u6709\u4e14\u53ea\u6709\u4e00\u4e2a\u6570\u5b57\u4e0d\u5728\u8be5\u6570\u7ec4\u4e2d\uff0c\u8bf7\u627e\u51fa\u8fd9\u4e2a\u6570\u5b57\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [0,1,3]\n<strong>\u8f93\u51fa:</strong> 2\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [0,1,2,3,4,5,6,7,9]\n<strong>\u8f93\u51fa:</strong> 8</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>1 <= \u6570\u7ec4\u957f\u5ea6 <= 10000</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/que-shi-de-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9853%20-%20II.%20%E7%BC%BA%E5%A4%B1%E7%9A%84%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9853%20-%20II.%20%E7%BC%BA%E5%A4%B1%E7%9A%84%E6%95%B0%E5%AD%97/README.md", "tags": ["Array", "Binary Search"], "tags_cn": ["\u6570\u7ec4", "\u4e8c\u5206\u67e5\u627e"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100330, "frontend_id": "\u9762\u8bd5\u989858 - II", "title": "\u5de6\u65cb\u8f6c\u5b57\u7b26\u4e32", "title_cn": "\u5de6\u65cb\u8f6c\u5b57\u7b26\u4e32", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u5b57\u7b26\u4e32\u7684\u5de6\u65cb\u8f6c\u64cd\u4f5c\u662f\u628a\u5b57\u7b26\u4e32\u524d\u9762\u7684\u82e5\u5e72\u4e2a\u5b57\u7b26\u8f6c\u79fb\u5230\u5b57\u7b26\u4e32\u7684\u5c3e\u90e8\u3002\u8bf7\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u5b9e\u73b0\u5b57\u7b26\u4e32\u5de6\u65cb\u8f6c\u64cd\u4f5c\u7684\u529f\u80fd\u3002\u6bd4\u5982\uff0c\u8f93\u5165\u5b57\u7b26\u4e32"abcdefg"\u548c\u6570\u5b572\uff0c\u8be5\u51fd\u6570\u5c06\u8fd4\u56de\u5de6\u65cb\u8f6c\u4e24\u4f4d\u5f97\u5230\u7684\u7ed3\u679c"cdefgab"\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> s = "abcdefg", k = 2\n<strong>\u8f93\u51fa: </strong>"cdefgab"\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> s = "lrloseumgh", k = 6\n<strong>\u8f93\u51fa: </strong>"umghlrlose"\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= k < s.length <= 10000</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9858%20-%20II.%20%E5%B7%A6%E6%97%8B%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9858%20-%20II.%20%E5%B7%A6%E6%97%8B%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2/README.md", "tags": ["String"], "tags_cn": ["\u5b57\u7b26\u4e32"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100329, "frontend_id": "\u9762\u8bd5\u989853 - I", "title": "\u5728\u6392\u5e8f\u6570\u7ec4\u4e2d\u67e5\u627e\u6570\u5b57", "title_cn": "\u5728\u6392\u5e8f\u6570\u7ec4\u4e2d\u67e5\u627e\u6570\u5b57 I", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7edf\u8ba1\u4e00\u4e2a\u6570\u5b57\u5728\u6392\u5e8f\u6570\u7ec4\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> nums = [<code>5,7,7,8,8,10]</code>, target = 8\n<strong>\u8f93\u51fa:</strong> 2</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> nums = [<code>5,7,7,8,8,10]</code>, target = 6\n<strong>\u8f93\u51fa:</strong> 0</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u6570\u7ec4\u957f\u5ea6 <= 50000</code></p>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u672c\u9898\u4e0e\u4e3b\u7ad9 34 \u9898\u76f8\u540c\uff08\u4ec5\u8fd4\u56de\u503c\u4e0d\u540c\uff09\uff1a<a href=\"https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/\">https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9853%20-%20I.%20%E5%9C%A8%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E6%9F%A5%E6%89%BE%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9853%20-%20I.%20%E5%9C%A8%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E6%9F%A5%E6%89%BE%E6%95%B0%E5%AD%97/README.md", "tags": ["Array", "Binary Search"], "tags_cn": ["\u6570\u7ec4", "\u4e8c\u5206\u67e5\u627e"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100328, "frontend_id": "\u9762\u8bd5\u989858 - I", "title": "\u7ffb\u8f6c\u5355\u8bcd\u987a\u5e8f", "title_cn": "\u7ffb\u8f6c\u5355\u8bcd\u987a\u5e8f", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u82f1\u6587\u53e5\u5b50\uff0c\u7ffb\u8f6c\u53e5\u5b50\u4e2d\u5355\u8bcd\u7684\u987a\u5e8f\uff0c\u4f46\u5355\u8bcd\u5185\u5b57\u7b26\u7684\u987a\u5e8f\u4e0d\u53d8\u3002\u4e3a\u7b80\u5355\u8d77\u89c1\uff0c\u6807\u70b9\u7b26\u53f7\u548c\u666e\u901a\u5b57\u6bcd\u4e00\u6837\u5904\u7406\u3002\u4f8b\u5982\u8f93\u5165\u5b57\u7b26\u4e32"I am a student. "\uff0c\u5219\u8f93\u51fa"student. a am I"\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> "<code>the sky is blue</code>"\n<strong>\u8f93\u51fa: </strong>"<code>blue is sky the</code>"\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> " hello world! "\n<strong>\u8f93\u51fa: </strong>"world! hello"\n<strong>\u89e3\u91ca: </strong>\u8f93\u5165\u5b57\u7b26\u4e32\u53ef\u4ee5\u5728\u524d\u9762\u6216\u8005\u540e\u9762\u5305\u542b\u591a\u4f59\u7684\u7a7a\u683c\uff0c\u4f46\u662f\u53cd\u8f6c\u540e\u7684\u5b57\u7b26\u4e0d\u80fd\u5305\u62ec\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 3\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> "a good example"\n<strong>\u8f93\u51fa: </strong>"example good a"\n<strong>\u89e3\u91ca: </strong>\u5982\u679c\u4e24\u4e2a\u5355\u8bcd\u95f4\u6709\u591a\u4f59\u7684\u7a7a\u683c\uff0c\u5c06\u53cd\u8f6c\u540e\u5355\u8bcd\u95f4\u7684\u7a7a\u683c\u51cf\u5c11\u5230\u53ea\u542b\u4e00\u4e2a\u3002\n</pre>\n\n<p> </p>\n\n<p><strong>\u8bf4\u660e\uff1a</strong></p>\n\n<ul>\n\t<li>\u65e0\u7a7a\u683c\u5b57\u7b26\u6784\u6210\u4e00\u4e2a\u5355\u8bcd\u3002</li>\n\t<li>\u8f93\u5165\u5b57\u7b26\u4e32\u53ef\u4ee5\u5728\u524d\u9762\u6216\u8005\u540e\u9762\u5305\u542b\u591a\u4f59\u7684\u7a7a\u683c\uff0c\u4f46\u662f\u53cd\u8f6c\u540e\u7684\u5b57\u7b26\u4e0d\u80fd\u5305\u62ec\u3002</li>\n\t<li>\u5982\u679c\u4e24\u4e2a\u5355\u8bcd\u95f4\u6709\u591a\u4f59\u7684\u7a7a\u683c\uff0c\u5c06\u53cd\u8f6c\u540e\u5355\u8bcd\u95f4\u7684\u7a7a\u683c\u51cf\u5c11\u5230\u53ea\u542b\u4e00\u4e2a\u3002</li>\n</ul>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u672c\u9898\u4e0e\u4e3b\u7ad9 151 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/reverse-words-in-a-string/\">https://leetcode.cn/problems/reverse-words-in-a-string/</a></p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u6b64\u9898\u5bf9\u6bd4\u539f\u9898\u6709\u6539\u52a8</p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/fan-zhuan-dan-ci-shun-xu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9858%20-%20I.%20%E7%BF%BB%E8%BD%AC%E5%8D%95%E8%AF%8D%E9%A1%BA%E5%BA%8F/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9858%20-%20I.%20%E7%BF%BB%E8%BD%AC%E5%8D%95%E8%AF%8D%E9%A1%BA%E5%BA%8F/README.md", "tags": ["String"], "tags_cn": ["\u5b57\u7b26\u4e32"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100327, "frontend_id": "\u9762\u8bd5\u989847", "title": "\u793c\u7269\u7684\u6700\u5927\u4ef7\u503c", "title_cn": "\u793c\u7269\u7684\u6700\u5927\u4ef7\u503c", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5728\u4e00\u4e2a m*n \u7684\u68cb\u76d8\u7684\u6bcf\u4e00\u683c\u90fd\u653e\u6709\u4e00\u4e2a\u793c\u7269\uff0c\u6bcf\u4e2a\u793c\u7269\u90fd\u6709\u4e00\u5b9a\u7684\u4ef7\u503c\uff08\u4ef7\u503c\u5927\u4e8e 0\uff09\u3002\u4f60\u53ef\u4ee5\u4ece\u68cb\u76d8\u7684\u5de6\u4e0a\u89d2\u5f00\u59cb\u62ff\u683c\u5b50\u91cc\u7684\u793c\u7269\uff0c\u5e76\u6bcf\u6b21\u5411\u53f3\u6216\u8005\u5411\u4e0b\u79fb\u52a8\u4e00\u683c\u3001\u76f4\u5230\u5230\u8fbe\u68cb\u76d8\u7684\u53f3\u4e0b\u89d2\u3002\u7ed9\u5b9a\u4e00\u4e2a\u68cb\u76d8\u53ca\u5176\u4e0a\u9762\u7684\u793c\u7269\u7684\u4ef7\u503c\uff0c\u8bf7\u8ba1\u7b97\u4f60\u6700\u591a\u80fd\u62ff\u5230\u591a\u5c11\u4ef7\u503c\u7684\u793c\u7269\uff1f</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> \n<code>[\n [1,3,1],\n [1,5,1],\n [4,2,1]\n]</code>\n<strong>\u8f93\u51fa:</strong> <code>12\n</code><strong>\u89e3\u91ca:</strong> \u8def\u5f84 1→3→5→2→1 \u53ef\u4ee5\u62ff\u5230\u6700\u591a\u4ef7\u503c\u7684\u793c\u7269</pre>\n\n<p> </p>\n\n<p>\u63d0\u793a\uff1a</p>\n\n<ul>\n\t<li><code>0 < grid.length <= 200</code></li>\n\t<li><code>0 < grid[0].length <= 200</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/li-wu-de-zui-da-jie-zhi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9847.%20%E7%A4%BC%E7%89%A9%E7%9A%84%E6%9C%80%E5%A4%A7%E4%BB%B7%E5%80%BC/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9847.%20%E7%A4%BC%E7%89%A9%E7%9A%84%E6%9C%80%E5%A4%A7%E4%BB%B7%E5%80%BC/README.md", "tags": ["Dynamic Programming"], "tags_cn": ["\u52a8\u6001\u89c4\u5212"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100326, "frontend_id": "\u9762\u8bd5\u989852", "title": "\u4e24\u4e2a\u94fe\u8868\u7684\u7b2c\u4e00\u4e2a\u516c\u5171\u8282\u70b9", "title_cn": "\u4e24\u4e2a\u94fe\u8868\u7684\u7b2c\u4e00\u4e2a\u516c\u5171\u8282\u70b9", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e24\u4e2a\u94fe\u8868\uff0c\u627e\u51fa\u5b83\u4eec\u7684\u7b2c\u4e00\u4e2a\u516c\u5171\u8282\u70b9\u3002</p>\n\n<p>\u5982\u4e0b\u9762\u7684\u4e24\u4e2a\u94fe\u8868<strong>\uff1a</strong></p>\n\n<p><a href=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2018/12/14/160_statement.png\" target=\"_blank\"><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2018/12/14/160_statement.png\" style=\"height: 130px; width: 400px;\"></a></p>\n\n<p>\u5728\u8282\u70b9 c1 \u5f00\u59cb\u76f8\u4ea4\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<p><a href=\"https://assets.leetcode.com/uploads/2018/12/13/160_example_1.png\" target=\"_blank\"><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2018/12/14/160_example_1.png\" style=\"height: 130px; width: 400px;\"></a></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3\n<strong>\u8f93\u51fa\uff1a</strong>Reference of the node with value = 8\n<strong>\u8f93\u5165\u89e3\u91ca\uff1a</strong>\u76f8\u4ea4\u8282\u70b9\u7684\u503c\u4e3a 8 \uff08\u6ce8\u610f\uff0c\u5982\u679c\u4e24\u4e2a\u5217\u8868\u76f8\u4ea4\u5219\u4e0d\u80fd\u4e3a 0\uff09\u3002\u4ece\u5404\u81ea\u7684\u8868\u5934\u5f00\u59cb\u7b97\u8d77\uff0c\u94fe\u8868 A \u4e3a [4,1,8,4,5]\uff0c\u94fe\u8868 B \u4e3a [5,0,1,8,4,5]\u3002\u5728 A \u4e2d\uff0c\u76f8\u4ea4\u8282\u70b9\u524d\u6709 2 \u4e2a\u8282\u70b9\uff1b\u5728 B \u4e2d\uff0c\u76f8\u4ea4\u8282\u70b9\u524d\u6709 3 \u4e2a\u8282\u70b9\u3002\n</pre>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<p><a href=\"https://assets.leetcode.com/uploads/2018/12/13/160_example_2.png\" target=\"_blank\"><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2018/12/14/160_example_2.png\" style=\"height: 136px; width: 350px;\"></a></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>intersectVal = 2, listA = [0,9,1,2,4], listB = [3,2,4], skipA = 3, skipB = 1\n<strong>\u8f93\u51fa\uff1a</strong>Reference of the node with value = 2\n<strong>\u8f93\u5165\u89e3\u91ca\uff1a</strong>\u76f8\u4ea4\u8282\u70b9\u7684\u503c\u4e3a 2 \uff08\u6ce8\u610f\uff0c\u5982\u679c\u4e24\u4e2a\u5217\u8868\u76f8\u4ea4\u5219\u4e0d\u80fd\u4e3a 0\uff09\u3002\u4ece\u5404\u81ea\u7684\u8868\u5934\u5f00\u59cb\u7b97\u8d77\uff0c\u94fe\u8868 A \u4e3a [0,9,1,2,4]\uff0c\u94fe\u8868 B \u4e3a [3,2,4]\u3002\u5728 A \u4e2d\uff0c\u76f8\u4ea4\u8282\u70b9\u524d\u6709 3 \u4e2a\u8282\u70b9\uff1b\u5728 B \u4e2d\uff0c\u76f8\u4ea4\u8282\u70b9\u524d\u6709 1 \u4e2a\u8282\u70b9\u3002\n</pre>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 3\uff1a</strong></p>\n\n<p><a href=\"https://assets.leetcode.com/uploads/2018/12/13/160_example_3.png\" target=\"_blank\"><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2018/12/14/160_example_3.png\" style=\"height: 126px; width: 200px;\"></a></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>intersectVal = 0, listA = [2,6,4], listB = [1,5], skipA = 3, skipB = 2\n<strong>\u8f93\u51fa\uff1a</strong>null\n<strong>\u8f93\u5165\u89e3\u91ca\uff1a</strong>\u4ece\u5404\u81ea\u7684\u8868\u5934\u5f00\u59cb\u7b97\u8d77\uff0c\u94fe\u8868 A \u4e3a [2,6,4]\uff0c\u94fe\u8868 B \u4e3a [1,5]\u3002\u7531\u4e8e\u8fd9\u4e24\u4e2a\u94fe\u8868\u4e0d\u76f8\u4ea4\uff0c\u6240\u4ee5 intersectVal \u5fc5\u987b\u4e3a 0\uff0c\u800c skipA \u548c skipB \u53ef\u4ee5\u662f\u4efb\u610f\u503c\u3002\n<strong>\u89e3\u91ca\uff1a</strong>\u8fd9\u4e24\u4e2a\u94fe\u8868\u4e0d\u76f8\u4ea4\uff0c\u56e0\u6b64\u8fd4\u56de null\u3002\n</pre>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong></p>\n\n<ul>\n\t<li>\u5982\u679c\u4e24\u4e2a\u94fe\u8868\u6ca1\u6709\u4ea4\u70b9\uff0c\u8fd4\u56de <code>null</code>.</li>\n\t<li>\u5728\u8fd4\u56de\u7ed3\u679c\u540e\uff0c\u4e24\u4e2a\u94fe\u8868\u4ecd\u987b\u4fdd\u6301\u539f\u6709\u7684\u7ed3\u6784\u3002</li>\n\t<li>\u53ef\u5047\u5b9a\u6574\u4e2a\u94fe\u8868\u7ed3\u6784\u4e2d\u6ca1\u6709\u5faa\u73af\u3002</li>\n\t<li>\u7a0b\u5e8f\u5c3d\u91cf\u6ee1\u8db3 O(<em>n</em>) \u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u4e14\u4ec5\u7528 O(<em>1</em>) \u5185\u5b58\u3002</li>\n\t<li>\u672c\u9898\u4e0e\u4e3b\u7ad9 160 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/intersection-of-two-linked-lists/\">https://leetcode.cn/problems/intersection-of-two-linked-lists/</a></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9852.%20%E4%B8%A4%E4%B8%AA%E9%93%BE%E8%A1%A8%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%85%AC%E5%85%B1%E8%8A%82%E7%82%B9/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9852.%20%E4%B8%A4%E4%B8%AA%E9%93%BE%E8%A1%A8%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%85%AC%E5%85%B1%E8%8A%82%E7%82%B9/README.md", "tags": ["Linked List"], "tags_cn": ["\u94fe\u8868"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100325, "frontend_id": "\u9762\u8bd5\u989846", "title": "\u628a\u6570\u5b57\u7ffb\u8bd1\u6210\u5b57\u7b26\u4e32", "title_cn": "\u628a\u6570\u5b57\u7ffb\u8bd1\u6210\u5b57\u7b26\u4e32", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7ed9\u5b9a\u4e00\u4e2a\u6570\u5b57\uff0c\u6211\u4eec\u6309\u7167\u5982\u4e0b\u89c4\u5219\u628a\u5b83\u7ffb\u8bd1\u4e3a\u5b57\u7b26\u4e32\uff1a0 \u7ffb\u8bd1\u6210 “a” \uff0c1 \u7ffb\u8bd1\u6210 “b”\uff0c……\uff0c11 \u7ffb\u8bd1\u6210 “l”\uff0c……\uff0c25 \u7ffb\u8bd1\u6210 “z”\u3002\u4e00\u4e2a\u6570\u5b57\u53ef\u80fd\u6709\u591a\u4e2a\u7ffb\u8bd1\u3002\u8bf7\u7f16\u7a0b\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u6765\u8ba1\u7b97\u4e00\u4e2a\u6570\u5b57\u6709\u591a\u5c11\u79cd\u4e0d\u540c\u7684\u7ffb\u8bd1\u65b9\u6cd5\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> 12258\n<strong>\u8f93\u51fa:</strong> <code>5\n</code><strong>\u89e3\u91ca:</strong> 12258\u67095\u79cd\u4e0d\u540c\u7684\u7ffb\u8bd1\uff0c\u5206\u522b\u662f"bccfi", "bwfi", "bczi", "mcfi"\u548c"mzi"</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>0 <= num < 2<sup>31</sup></code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9846.%20%E6%8A%8A%E6%95%B0%E5%AD%97%E7%BF%BB%E8%AF%91%E6%88%90%E5%AD%97%E7%AC%A6%E4%B8%B2/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9846.%20%E6%8A%8A%E6%95%B0%E5%AD%97%E7%BF%BB%E8%AF%91%E6%88%90%E5%AD%97%E7%AC%A6%E4%B8%B2/README.md", "tags": [], "tags_cn": [], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100324, "frontend_id": "\u9762\u8bd5\u989857 - II", "title": "\u548c\u4e3as\u7684\u8fde\u7eed\u6b63\u6570\u5e8f\u5217", "title_cn": "\u548c\u4e3as\u7684\u8fde\u7eed\u6b63\u6570\u5e8f\u5217", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u6b63\u6574\u6570 <code>target</code> \uff0c\u8f93\u51fa\u6240\u6709\u548c\u4e3a <code>target</code> \u7684\u8fde\u7eed\u6b63\u6574\u6570\u5e8f\u5217\uff08\u81f3\u5c11\u542b\u6709\u4e24\u4e2a\u6570\uff09\u3002</p>\n\n<p>\u5e8f\u5217\u5185\u7684\u6570\u5b57\u7531\u5c0f\u5230\u5927\u6392\u5217\uff0c\u4e0d\u540c\u5e8f\u5217\u6309\u7167\u9996\u4e2a\u6570\u5b57\u4ece\u5c0f\u5230\u5927\u6392\u5217\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>target = 9\n<strong>\u8f93\u51fa\uff1a</strong>[[2,3,4],[4,5]]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>target = 15\n<strong>\u8f93\u51fa\uff1a</strong>[[1,2,3,4,5],[4,5,6],[7,8]]\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= target <= 10^5</code></li>\n</ul>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9857%20-%20II.%20%E5%92%8C%E4%B8%BAs%E7%9A%84%E8%BF%9E%E7%BB%AD%E6%AD%A3%E6%95%B0%E5%BA%8F%E5%88%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9857%20-%20II.%20%E5%92%8C%E4%B8%BAs%E7%9A%84%E8%BF%9E%E7%BB%AD%E6%AD%A3%E6%95%B0%E5%BA%8F%E5%88%97/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100323, "frontend_id": "\u9762\u8bd5\u989845", "title": "\u628a\u6570\u7ec4\u6392\u6210\u6700\u5c0f\u7684\u6570", "title_cn": "\u628a\u6570\u7ec4\u6392\u6210\u6700\u5c0f\u7684\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u6b63\u6574\u6570\u6570\u7ec4\uff0c\u628a\u6570\u7ec4\u91cc\u6240\u6709\u6570\u5b57\u62fc\u63a5\u8d77\u6765\u6392\u6210\u4e00\u4e2a\u6570\uff0c\u6253\u5370\u80fd\u62fc\u63a5\u51fa\u7684\u6240\u6709\u6570\u5b57\u4e2d\u6700\u5c0f\u7684\u4e00\u4e2a\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> <code>[10,2]</code>\n<strong>\u8f93\u51fa:</strong> "<code>102"</code></pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> <code>[3,30,34,5,9]</code>\n<strong>\u8f93\u51fa:</strong> "<code>3033459"</code></pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a:</strong></p>\n\n<ul>\n\t<li><code>0 < nums.length <= 100</code></li>\n</ul>\n\n<p><strong>\u8bf4\u660e: </strong></p>\n\n<ul>\n\t<li>\u8f93\u51fa\u7ed3\u679c\u53ef\u80fd\u975e\u5e38\u5927\uff0c\u6240\u4ee5\u4f60\u9700\u8981\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\u800c\u4e0d\u662f\u6574\u6570</li>\n\t<li>\u62fc\u63a5\u8d77\u6765\u7684\u6570\u5b57\u53ef\u80fd\u4f1a\u6709\u524d\u5bfc 0\uff0c\u6700\u540e\u7ed3\u679c\u4e0d\u9700\u8981\u53bb\u6389\u524d\u5bfc 0</li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9845.%20%E6%8A%8A%E6%95%B0%E7%BB%84%E6%8E%92%E6%88%90%E6%9C%80%E5%B0%8F%E7%9A%84%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9845.%20%E6%8A%8A%E6%95%B0%E7%BB%84%E6%8E%92%E6%88%90%E6%9C%80%E5%B0%8F%E7%9A%84%E6%95%B0/README.md", "tags": ["Sort"], "tags_cn": ["\u6392\u5e8f"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100322, "frontend_id": "\u9762\u8bd5\u989857", "title": "\u548c\u4e3as\u7684\u4e24\u4e2a\u6570\u5b57", "title_cn": "\u548c\u4e3as\u7684\u4e24\u4e2a\u6570\u5b57", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u9012\u589e\u6392\u5e8f\u7684\u6570\u7ec4\u548c\u4e00\u4e2a\u6570\u5b57s\uff0c\u5728\u6570\u7ec4\u4e2d\u67e5\u627e\u4e24\u4e2a\u6570\uff0c\u4f7f\u5f97\u5b83\u4eec\u7684\u548c\u6b63\u597d\u662fs\u3002\u5982\u679c\u6709\u591a\u5bf9\u6570\u5b57\u7684\u548c\u7b49\u4e8es\uff0c\u5219\u8f93\u51fa\u4efb\u610f\u4e00\u5bf9\u5373\u53ef\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>nums = [2,7,11,15], target = 9\n<strong>\u8f93\u51fa\uff1a</strong>[2,7] \u6216\u8005 [7,2]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>nums = [10,26,30,31,47,60], target = 40\n<strong>\u8f93\u51fa\uff1a</strong>[10,30] \u6216\u8005 [30,10]\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= nums.length <= 10^5</code></li>\n\t<li><code>1 <= nums[i] <= 10^6</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/he-wei-sde-liang-ge-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9857.%20%E5%92%8C%E4%B8%BAs%E7%9A%84%E4%B8%A4%E4%B8%AA%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9857.%20%E5%92%8C%E4%B8%BAs%E7%9A%84%E4%B8%A4%E4%B8%AA%E6%95%B0%E5%AD%97/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100321, "frontend_id": "\u9762\u8bd5\u989856 - II", "title": "\u6570\u7ec4\u4e2d\u6570\u5b57\u51fa\u73b0\u7684\u6b21\u6570 II", "title_cn": "\u6570\u7ec4\u4e2d\u6570\u5b57\u51fa\u73b0\u7684\u6b21\u6570 II", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u5728\u4e00\u4e2a\u6570\u7ec4 <code>nums</code> \u4e2d\u9664\u4e00\u4e2a\u6570\u5b57\u53ea\u51fa\u73b0\u4e00\u6b21\u4e4b\u5916\uff0c\u5176\u4ed6\u6570\u5b57\u90fd\u51fa\u73b0\u4e86\u4e09\u6b21\u3002\u8bf7\u627e\u51fa\u90a3\u4e2a\u53ea\u51fa\u73b0\u4e00\u6b21\u7684\u6570\u5b57\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>nums = [3,4,3,3]\n<strong>\u8f93\u51fa\uff1a</strong>4\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>nums = [9,1,7,9,7,9,7]\n<strong>\u8f93\u51fa\uff1a</strong>1</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= nums.length <= 10000</code></li>\n\t<li><code>1 <= nums[i] < 2^31</code></li>\n</ul>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9856%20-%20II.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E6%95%B0%E5%AD%97%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0%20II/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9856%20-%20II.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E6%95%B0%E5%AD%97%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0%20II/README.md", "tags": [], "tags_cn": [], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100320, "frontend_id": "\u9762\u8bd5\u989856 - I", "title": "\u6570\u7ec4\u4e2d\u6570\u5b57\u51fa\u73b0\u7684\u6b21\u6570", "title_cn": "\u6570\u7ec4\u4e2d\u6570\u5b57\u51fa\u73b0\u7684\u6b21\u6570", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u4e00\u4e2a\u6574\u578b\u6570\u7ec4 <code>nums</code> \u91cc\u9664\u4e24\u4e2a\u6570\u5b57\u4e4b\u5916\uff0c\u5176\u4ed6\u6570\u5b57\u90fd\u51fa\u73b0\u4e86\u4e24\u6b21\u3002\u8bf7\u5199\u7a0b\u5e8f\u627e\u51fa\u8fd9\u4e24\u4e2a\u53ea\u51fa\u73b0\u4e00\u6b21\u7684\u6570\u5b57\u3002\u8981\u6c42\u65f6\u95f4\u590d\u6742\u5ea6\u662fO(n)\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u662fO(1)\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>nums = [4,1,4,6]\n<strong>\u8f93\u51fa\uff1a</strong>[1,6] \u6216 [6,1]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>nums = [1,2,10,4,1,4,3,3]\n<strong>\u8f93\u51fa\uff1a</strong>[2,10] \u6216 [10,2]</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>2 <= nums <= 10000</code></li>\n</ul>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9856%20-%20I.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E6%95%B0%E5%AD%97%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9856%20-%20I.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E6%95%B0%E5%AD%97%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0/README.md", "tags": [], "tags_cn": [], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100319, "frontend_id": "\u9762\u8bd5\u989855 - I", "title": "\u4e8c\u53c9\u6811\u7684\u6df1\u5ea6", "title_cn": "\u4e8c\u53c9\u6811\u7684\u6df1\u5ea6", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u8f93\u5165\u4e00\u68f5\u4e8c\u53c9\u6811\u7684\u6839\u8282\u70b9\uff0c\u6c42\u8be5\u6811\u7684\u6df1\u5ea6\u3002\u4ece\u6839\u8282\u70b9\u5230\u53f6\u8282\u70b9\u4f9d\u6b21\u7ecf\u8fc7\u7684\u8282\u70b9\uff08\u542b\u6839\u3001\u53f6\u8282\u70b9\uff09\u5f62\u6210\u6811\u7684\u4e00\u6761\u8def\u5f84\uff0c\u6700\u957f\u8def\u5f84\u7684\u957f\u5ea6\u4e3a\u6811\u7684\u6df1\u5ea6\u3002</p>\n\n<p>\u4f8b\u5982\uff1a</p>\n\n<p>\u7ed9\u5b9a\u4e8c\u53c9\u6811 <code>[3,9,20,null,null,15,7]</code>\uff0c</p>\n\n<pre> 3\n / \\\n 9 20\n / \\\n 15 7</pre>\n\n<p>\u8fd4\u56de\u5b83\u7684\u6700\u5927\u6df1\u5ea6 3 \u3002</p>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>\u8282\u70b9\u603b\u6570 <= 10000</code></li>\n</ol>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 104 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/maximum-depth-of-binary-tree/\">https://leetcode.cn/problems/maximum-depth-of-binary-tree/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-shu-de-shen-du-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9855%20-%20I.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%B7%B1%E5%BA%A6/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9855%20-%20I.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%B7%B1%E5%BA%A6/README.md", "tags": ["Tree", "Depth-first Search"], "tags_cn": ["\u6811", "\u6df1\u5ea6\u4f18\u5148\u641c\u7d22"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100318, "frontend_id": "\u9762\u8bd5\u989851", "title": "\u6570\u7ec4\u4e2d\u7684\u9006\u5e8f\u5bf9", "title_cn": "\u6570\u7ec4\u4e2d\u7684\u9006\u5e8f\u5bf9", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5728\u6570\u7ec4\u4e2d\u7684\u4e24\u4e2a\u6570\u5b57\uff0c\u5982\u679c\u524d\u9762\u4e00\u4e2a\u6570\u5b57\u5927\u4e8e\u540e\u9762\u7684\u6570\u5b57\uff0c\u5219\u8fd9\u4e24\u4e2a\u6570\u5b57\u7ec4\u6210\u4e00\u4e2a\u9006\u5e8f\u5bf9\u3002\u8f93\u5165\u4e00\u4e2a\u6570\u7ec4\uff0c\u6c42\u51fa\u8fd9\u4e2a\u6570\u7ec4\u4e2d\u7684\u9006\u5e8f\u5bf9\u7684\u603b\u6570\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165</strong>: [7,5,6,4]\n<strong>\u8f93\u51fa</strong>: 5</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u6570\u7ec4\u957f\u5ea6 <= 50000</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-zu-zhong-de-ni-xu-dui-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9851.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E9%80%86%E5%BA%8F%E5%AF%B9/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9851.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E9%80%86%E5%BA%8F%E5%AF%B9/README.md", "tags": [], "tags_cn": [], "difficulty": "Hard", "difficulty_cn": "\u56f0\u96be", "category": "lcof"}, {"id": 100317, "frontend_id": "\u9762\u8bd5\u989834", "title": "\u4e8c\u53c9\u6811\u4e2d\u548c\u4e3a\u67d0\u4e00\u503c\u7684\u8def\u5f84", "title_cn": "\u4e8c\u53c9\u6811\u4e2d\u548c\u4e3a\u67d0\u4e00\u503c\u7684\u8def\u5f84", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u68f5\u4e8c\u53c9\u6811\u548c\u4e00\u4e2a\u6574\u6570\uff0c\u6253\u5370\u51fa\u4e8c\u53c9\u6811\u4e2d\u8282\u70b9\u503c\u7684\u548c\u4e3a\u8f93\u5165\u6574\u6570\u7684\u6240\u6709\u8def\u5f84\u3002\u4ece\u6811\u7684\u6839\u8282\u70b9\u5f00\u59cb\u5f80\u4e0b\u4e00\u76f4\u5230\u53f6\u8282\u70b9\u6240\u7ecf\u8fc7\u7684\u8282\u70b9\u5f62\u6210\u4e00\u6761\u8def\u5f84\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong><br>\n\u7ed9\u5b9a\u5982\u4e0b\u4e8c\u53c9\u6811\uff0c\u4ee5\u53ca\u76ee\u6807\u548c <code>sum = 22</code>\uff0c</p>\n\n<pre> <strong>5</strong>\n / \\\n <strong>4</strong> <strong>8</strong>\n / / \\\n <strong>11</strong> 13 <strong>4</strong>\n / \\ / \\\n 7 <strong>2</strong> <strong>5</strong> 1\n</pre>\n\n<p>\u8fd4\u56de:</p>\n\n<pre>[\n [5,4,11,2],\n [5,8,4,5]\n]\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>\u8282\u70b9\u603b\u6570 <= 10000</code></li>\n</ol>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 113 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/path-sum-ii/\">https://leetcode.cn/problems/path-sum-ii/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-shu-zhong-he-wei-mou-yi-zhi-de-lu-jing-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9834.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E4%B8%AD%E5%92%8C%E4%B8%BA%E6%9F%90%E4%B8%80%E5%80%BC%E7%9A%84%E8%B7%AF%E5%BE%84/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9834.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E4%B8%AD%E5%92%8C%E4%B8%BA%E6%9F%90%E4%B8%80%E5%80%BC%E7%9A%84%E8%B7%AF%E5%BE%84/README.md", "tags": ["Tree", "Depth-first Search"], "tags_cn": ["\u6811", "\u6df1\u5ea6\u4f18\u5148\u641c\u7d22"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100316, "frontend_id": "\u9762\u8bd5\u989850", "title": "\u7b2c\u4e00\u4e2a\u53ea\u51fa\u73b0\u4e00\u6b21\u7684\u5b57\u7b26", "title_cn": "\u7b2c\u4e00\u4e2a\u53ea\u51fa\u73b0\u4e00\u6b21\u7684\u5b57\u7b26", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5728\u5b57\u7b26\u4e32 s \u4e2d\u627e\u51fa\u7b2c\u4e00\u4e2a\u53ea\u51fa\u73b0\u4e00\u6b21\u7684\u5b57\u7b26\u3002\u5982\u679c\u6ca1\u6709\uff0c\u8fd4\u56de\u4e00\u4e2a\u5355\u7a7a\u683c\u3002</p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre>s = "abaccdeff"\n\u8fd4\u56de "b"\n\ns = "" \n\u8fd4\u56de " "\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= s \u7684\u957f\u5ea6 <= 50000</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/di-yi-ge-zhi-chu-xian-yi-ci-de-zi-fu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9850.%20%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%8F%AA%E5%87%BA%E7%8E%B0%E4%B8%80%E6%AC%A1%E7%9A%84%E5%AD%97%E7%AC%A6/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9850.%20%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%8F%AA%E5%87%BA%E7%8E%B0%E4%B8%80%E6%AC%A1%E7%9A%84%E5%AD%97%E7%AC%A6/README.md", "tags": ["Hash Table"], "tags_cn": ["\u54c8\u5e0c\u8868"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100315, "frontend_id": "\u9762\u8bd5\u989833", "title": "\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u540e\u5e8f\u904d\u5386\u5e8f\u5217", "title_cn": "\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u540e\u5e8f\u904d\u5386\u5e8f\u5217", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u6574\u6570\u6570\u7ec4\uff0c\u5224\u65ad\u8be5\u6570\u7ec4\u662f\u4e0d\u662f\u67d0\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u540e\u5e8f\u904d\u5386\u7ed3\u679c\u3002\u5982\u679c\u662f\u5219\u8fd4\u56de <code>true</code>\uff0c\u5426\u5219\u8fd4\u56de <code>false</code>\u3002\u5047\u8bbe\u8f93\u5165\u7684\u6570\u7ec4\u7684\u4efb\u610f\u4e24\u4e2a\u6570\u5b57\u90fd\u4e92\u4e0d\u76f8\u540c\u3002</p>\n\n<p> </p>\n\n<p>\u53c2\u8003\u4ee5\u4e0b\u8fd9\u9897\u4e8c\u53c9\u641c\u7d22\u6811\uff1a</p>\n\n<pre> 5\n / \\\n 2 6\n / \\\n 1 3</pre>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>[1,6,3,2,5]\n<strong>\u8f93\u51fa: </strong>false</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>[1,3,2,6,5]\n<strong>\u8f93\u51fa: </strong>true</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>\u6570\u7ec4\u957f\u5ea6 <= 1000</code></li>\n</ol>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9833.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86%E5%BA%8F%E5%88%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9833.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E7%9A%84%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86%E5%BA%8F%E5%88%97/README.md", "tags": [], "tags_cn": [], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100314, "frontend_id": "\u9762\u8bd5\u989832 - III", "title": "\u4ece\u4e0a\u5230\u4e0b\u6253\u5370\u4e8c\u53c9\u6811 III", "title_cn": "\u4ece\u4e0a\u5230\u4e0b\u6253\u5370\u4e8c\u53c9\u6811 III", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\u6309\u7167\u4e4b\u5b57\u5f62\u987a\u5e8f\u6253\u5370\u4e8c\u53c9\u6811\uff0c\u5373\u7b2c\u4e00\u884c\u6309\u7167\u4ece\u5de6\u5230\u53f3\u7684\u987a\u5e8f\u6253\u5370\uff0c\u7b2c\u4e8c\u5c42\u6309\u7167\u4ece\u53f3\u5230\u5de6\u7684\u987a\u5e8f\u6253\u5370\uff0c\u7b2c\u4e09\u884c\u518d\u6309\u7167\u4ece\u5de6\u5230\u53f3\u7684\u987a\u5e8f\u6253\u5370\uff0c\u5176\u4ed6\u884c\u4ee5\u6b64\u7c7b\u63a8\u3002</p>\n\n<p> </p>\n\n<p>\u4f8b\u5982:<br>\n\u7ed9\u5b9a\u4e8c\u53c9\u6811: <code>[3,9,20,null,null,15,7]</code>,</p>\n\n<pre> 3\n / \\\n 9 20\n / \\\n 15 7\n</pre>\n\n<p>\u8fd4\u56de\u5176\u5c42\u6b21\u904d\u5386\u7ed3\u679c\uff1a</p>\n\n<pre>[\n [3],\n [20,9],\n [15,7]\n]\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>\u8282\u70b9\u603b\u6570 <= 1000</code></li>\n</ol>\n", "url": "", "url_cn": "https://leetcode.cn/problems/cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9832%20-%20III.%20%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8B%E6%89%93%E5%8D%B0%E4%BA%8C%E5%8F%89%E6%A0%91%20III/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9832%20-%20III.%20%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8B%E6%89%93%E5%8D%B0%E4%BA%8C%E5%8F%89%E6%A0%91%20III/README.md", "tags": ["Tree", "Breadth-first Search"], "tags_cn": ["\u6811", "\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100313, "frontend_id": "\u9762\u8bd5\u989844", "title": "\u6570\u5b57\u5e8f\u5217\u4e2d\u67d0\u4e00\u4f4d\u7684\u6570\u5b57", "title_cn": "\u6570\u5b57\u5e8f\u5217\u4e2d\u67d0\u4e00\u4f4d\u7684\u6570\u5b57", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u6570\u5b57\u4ee50123456789101112131415…\u7684\u683c\u5f0f\u5e8f\u5217\u5316\u5230\u4e00\u4e2a\u5b57\u7b26\u5e8f\u5217\u4e2d\u3002\u5728\u8fd9\u4e2a\u5e8f\u5217\u4e2d\uff0c\u7b2c5\u4f4d\uff08\u4ece\u4e0b\u68070\u5f00\u59cb\u8ba1\u6570\uff09\u662f5\uff0c\u7b2c13\u4f4d\u662f1\uff0c\u7b2c19\u4f4d\u662f4\uff0c\u7b49\u7b49\u3002</p>\n\n<p>\u8bf7\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u6c42\u4efb\u610f\u7b2cn\u4f4d\u5bf9\u5e94\u7684\u6570\u5b57\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 3\n<strong>\u8f93\u51fa\uff1a</strong>3\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 11\n<strong>\u8f93\u51fa\uff1a</strong>0</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>0 <= n < 2^31</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 400 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/nth-digit/\">https://leetcode.cn/problems/nth-digit/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-zi-xu-lie-zhong-mou-yi-wei-de-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9844.%20%E6%95%B0%E5%AD%97%E5%BA%8F%E5%88%97%E4%B8%AD%E6%9F%90%E4%B8%80%E4%BD%8D%E7%9A%84%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9844.%20%E6%95%B0%E5%AD%97%E5%BA%8F%E5%88%97%E4%B8%AD%E6%9F%90%E4%B8%80%E4%BD%8D%E7%9A%84%E6%95%B0%E5%AD%97/README.md", "tags": ["Math"], "tags_cn": ["\u6570\u5b66"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100312, "frontend_id": "\u9762\u8bd5\u989832 - II", "title": "\u4ece\u4e0a\u5230\u4e0b\u6253\u5370\u4e8c\u53c9\u6811 II", "title_cn": "\u4ece\u4e0a\u5230\u4e0b\u6253\u5370\u4e8c\u53c9\u6811 II", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u4ece\u4e0a\u5230\u4e0b\u6309\u5c42\u6253\u5370\u4e8c\u53c9\u6811\uff0c\u540c\u4e00\u5c42\u7684\u8282\u70b9\u6309\u4ece\u5de6\u5230\u53f3\u7684\u987a\u5e8f\u6253\u5370\uff0c\u6bcf\u4e00\u5c42\u6253\u5370\u5230\u4e00\u884c\u3002</p>\n\n<p> </p>\n\n<p>\u4f8b\u5982:<br>\n\u7ed9\u5b9a\u4e8c\u53c9\u6811: <code>[3,9,20,null,null,15,7]</code>,</p>\n\n<pre> 3\n / \\\n 9 20\n / \\\n 15 7\n</pre>\n\n<p>\u8fd4\u56de\u5176\u5c42\u6b21\u904d\u5386\u7ed3\u679c\uff1a</p>\n\n<pre>[\n [3],\n [9,20],\n [15,7]\n]\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>\u8282\u70b9\u603b\u6570 <= 1000</code></li>\n</ol>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 102 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/binary-tree-level-order-traversal/\">https://leetcode.cn/problems/binary-tree-level-order-traversal/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/cong-shang-dao-xia-da-yin-er-cha-shu-ii-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9832%20-%20II.%20%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8B%E6%89%93%E5%8D%B0%E4%BA%8C%E5%8F%89%E6%A0%91%20II/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9832%20-%20II.%20%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8B%E6%89%93%E5%8D%B0%E4%BA%8C%E5%8F%89%E6%A0%91%20II/README.md", "tags": ["Tree", "Breadth-first Search"], "tags_cn": ["\u6811", "\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100311, "frontend_id": "\u9762\u8bd5\u989832 - I", "title": "\u4ece\u4e0a\u5230\u4e0b\u6253\u5370\u4e8c\u53c9\u6811", "title_cn": "\u4ece\u4e0a\u5230\u4e0b\u6253\u5370\u4e8c\u53c9\u6811", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u4ece\u4e0a\u5230\u4e0b\u6253\u5370\u51fa\u4e8c\u53c9\u6811\u7684\u6bcf\u4e2a\u8282\u70b9\uff0c\u540c\u4e00\u5c42\u7684\u8282\u70b9\u6309\u7167\u4ece\u5de6\u5230\u53f3\u7684\u987a\u5e8f\u6253\u5370\u3002</p>\n\n<p> </p>\n\n<p>\u4f8b\u5982:<br>\n\u7ed9\u5b9a\u4e8c\u53c9\u6811: <code>[3,9,20,null,null,15,7]</code>,</p>\n\n<pre> 3\n / \\\n 9 20\n / \\\n 15 7\n</pre>\n\n<p>\u8fd4\u56de\uff1a</p>\n\n<pre>[3,9,20,15,7]\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>\u8282\u70b9\u603b\u6570 <= 1000</code></li>\n</ol>\n", "url": "", "url_cn": "https://leetcode.cn/problems/cong-shang-dao-xia-da-yin-er-cha-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9832%20-%20I.%20%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8B%E6%89%93%E5%8D%B0%E4%BA%8C%E5%8F%89%E6%A0%91/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9832%20-%20I.%20%E4%BB%8E%E4%B8%8A%E5%88%B0%E4%B8%8B%E6%89%93%E5%8D%B0%E4%BA%8C%E5%8F%89%E6%A0%91/README.md", "tags": ["Tree", "Breadth-first Search"], "tags_cn": ["\u6811", "\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100310, "frontend_id": "\u9762\u8bd5\u989839", "title": "\u6570\u7ec4\u4e2d\u51fa\u73b0\u6b21\u6570\u8d85\u8fc7\u4e00\u534a\u7684\u6570\u5b57", "title_cn": "\u6570\u7ec4\u4e2d\u51fa\u73b0\u6b21\u6570\u8d85\u8fc7\u4e00\u534a\u7684\u6570\u5b57", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u6570\u7ec4\u4e2d\u6709\u4e00\u4e2a\u6570\u5b57\u51fa\u73b0\u7684\u6b21\u6570\u8d85\u8fc7\u6570\u7ec4\u957f\u5ea6\u7684\u4e00\u534a\uff0c\u8bf7\u627e\u51fa\u8fd9\u4e2a\u6570\u5b57\u3002</p>\n\n<p> </p>\n\n<p>\u4f60\u53ef\u4ee5\u5047\u8bbe\u6570\u7ec4\u662f\u975e\u7a7a\u7684\uff0c\u5e76\u4e14\u7ed9\u5b9a\u7684\u6570\u7ec4\u603b\u662f\u5b58\u5728\u591a\u6570\u5143\u7d20\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> [1, 2, 3, 2, 2, 2, 5, 4, 2]\n<strong>\u8f93\u51fa:</strong> 2</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>1 <= \u6570\u7ec4\u957f\u5ea6 <= 50000</code></p>\n\n<p> </p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 169 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/majority-element/\">https://leetcode.cn/problems/majority-element/</a></p>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9839.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E5%87%BA%E7%8E%B0%E6%AC%A1%E6%95%B0%E8%B6%85%E8%BF%87%E4%B8%80%E5%8D%8A%E7%9A%84%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9839.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E5%87%BA%E7%8E%B0%E6%AC%A1%E6%95%B0%E8%B6%85%E8%BF%87%E4%B8%80%E5%8D%8A%E7%9A%84%E6%95%B0%E5%AD%97/README.md", "tags": ["Bit Manipulation", "Divide and Conquer"], "tags_cn": ["\u4f4d\u8fd0\u7b97", "\u5206\u6cbb\u7b97\u6cd5"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100309, "frontend_id": "\u9762\u8bd5\u989843", "title": "1\uff5en\u6574\u6570\u4e2d1\u51fa\u73b0\u7684\u6b21\u6570", "title_cn": "1\uff5en\u6574\u6570\u4e2d1\u51fa\u73b0\u7684\u6b21\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u6574\u6570 <code>n</code> \uff0c\u6c421\uff5en\u8fd9n\u4e2a\u6574\u6570\u7684\u5341\u8fdb\u5236\u8868\u793a\u4e2d1\u51fa\u73b0\u7684\u6b21\u6570\u3002</p>\n\n<p>\u4f8b\u5982\uff0c\u8f93\u516512\uff0c1\uff5e12\u8fd9\u4e9b\u6574\u6570\u4e2d\u5305\u542b1 \u7684\u6570\u5b57\u67091\u300110\u300111\u548c12\uff0c1\u4e00\u5171\u51fa\u73b0\u4e865\u6b21\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 12\n<strong>\u8f93\u51fa\uff1a</strong>5\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 13\n<strong>\u8f93\u51fa\uff1a</strong>6</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= n < 2^31</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 233 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/number-of-digit-one/\">https://leetcode.cn/problems/number-of-digit-one/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/1nzheng-shu-zhong-1chu-xian-de-ci-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9843.%201%EF%BD%9En%E6%95%B4%E6%95%B0%E4%B8%AD1%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9843.%201%EF%BD%9En%E6%95%B4%E6%95%B0%E4%B8%AD1%E5%87%BA%E7%8E%B0%E7%9A%84%E6%AC%A1%E6%95%B0/README.md", "tags": ["Math"], "tags_cn": ["\u6570\u5b66"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100308, "frontend_id": "\u9762\u8bd5\u989838", "title": "\u5b57\u7b26\u4e32\u7684\u6392\u5217", "title_cn": "\u5b57\u7b26\u4e32\u7684\u6392\u5217", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u6253\u5370\u51fa\u8be5\u5b57\u7b26\u4e32\u4e2d\u5b57\u7b26\u7684\u6240\u6709\u6392\u5217\u3002</p>\n\n<p> </p>\n\n<p>\u4f60\u53ef\u4ee5\u4ee5\u4efb\u610f\u987a\u5e8f\u8fd4\u56de\u8fd9\u4e2a\u5b57\u7b26\u4e32\u6570\u7ec4\uff0c\u4f46\u91cc\u9762\u4e0d\u80fd\u6709\u91cd\u590d\u5143\u7d20\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>s = "abc"\n<strong>\u8f93\u51fa\uff1a[</strong>"abc","acb","bac","bca","cab","cba"<strong>]</strong>\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>1 <= s \u7684\u957f\u5ea6 <= 8</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zi-fu-chuan-de-pai-lie-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9838.%20%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E6%8E%92%E5%88%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9838.%20%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E6%8E%92%E5%88%97/README.md", "tags": ["Backtracking"], "tags_cn": ["\u56de\u6eaf\u7b97\u6cd5"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100307, "frontend_id": "\u9762\u8bd5\u989837", "title": "\u5e8f\u5217\u5316\u4e8c\u53c9\u6811", "title_cn": "\u5e8f\u5217\u5316\u4e8c\u53c9\u6811", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u5b9e\u73b0\u4e24\u4e2a\u51fd\u6570\uff0c\u5206\u522b\u7528\u6765\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u4e8c\u53c9\u6811\u3002</p>\n\n<p><strong>\u793a\u4f8b: </strong></p>\n\n<pre>\u4f60\u53ef\u4ee5\u5c06\u4ee5\u4e0b\u4e8c\u53c9\u6811\uff1a\n\n 1\n / \\\n 2 3\n / \\\n 4 5\n\n\u5e8f\u5217\u5316\u4e3a <code>"[1,2,3,null,null,4,5]"</code></pre>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 297 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/serialize-and-deserialize-binary-tree/\">https://leetcode.cn/problems/serialize-and-deserialize-binary-tree/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/xu-lie-hua-er-cha-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9837.%20%E5%BA%8F%E5%88%97%E5%8C%96%E4%BA%8C%E5%8F%89%E6%A0%91/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9837.%20%E5%BA%8F%E5%88%97%E5%8C%96%E4%BA%8C%E5%8F%89%E6%A0%91/README.md", "tags": ["Tree", "Design"], "tags_cn": ["\u6811", "\u8bbe\u8ba1"], "difficulty": "Hard", "difficulty_cn": "\u56f0\u96be", "category": "lcof"}, {"id": 100306, "frontend_id": "\u9762\u8bd5\u989831", "title": "\u6808\u7684\u538b\u5165\u3001\u5f39\u51fa\u5e8f\u5217", "title_cn": "\u6808\u7684\u538b\u5165\u3001\u5f39\u51fa\u5e8f\u5217", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e24\u4e2a\u6574\u6570\u5e8f\u5217\uff0c\u7b2c\u4e00\u4e2a\u5e8f\u5217\u8868\u793a\u6808\u7684\u538b\u5165\u987a\u5e8f\uff0c\u8bf7\u5224\u65ad\u7b2c\u4e8c\u4e2a\u5e8f\u5217\u662f\u5426\u4e3a\u8be5\u6808\u7684\u5f39\u51fa\u987a\u5e8f\u3002\u5047\u8bbe\u538b\u5165\u6808\u7684\u6240\u6709\u6570\u5b57\u5747\u4e0d\u76f8\u7b49\u3002\u4f8b\u5982\uff0c\u5e8f\u5217 {1,2,3,4,5} \u662f\u67d0\u6808\u7684\u538b\u6808\u5e8f\u5217\uff0c\u5e8f\u5217 {4,5,3,2,1} \u662f\u8be5\u538b\u6808\u5e8f\u5217\u5bf9\u5e94\u7684\u4e00\u4e2a\u5f39\u51fa\u5e8f\u5217\uff0c\u4f46 {4,3,5,1,2} \u5c31\u4e0d\u53ef\u80fd\u662f\u8be5\u538b\u6808\u5e8f\u5217\u7684\u5f39\u51fa\u5e8f\u5217\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>pushed = [1,2,3,4,5], popped = [4,5,3,2,1]\n<strong>\u8f93\u51fa\uff1a</strong>true\n<strong>\u89e3\u91ca\uff1a</strong>\u6211\u4eec\u53ef\u4ee5\u6309\u4ee5\u4e0b\u987a\u5e8f\u6267\u884c\uff1a\npush(1), push(2), push(3), push(4), pop() -> 4,\npush(5), pop() -> 5, pop() -> 3, pop() -> 2, pop() -> 1\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>pushed = [1,2,3,4,5], popped = [4,3,5,1,2]\n<strong>\u8f93\u51fa\uff1a</strong>false\n<strong>\u89e3\u91ca\uff1a</strong>1 \u4e0d\u80fd\u5728 2 \u4e4b\u524d\u5f39\u51fa\u3002\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>0 <= pushed.length == popped.length <= 1000</code></li>\n\t<li><code>0 <= pushed[i], popped[i] < 1000</code></li>\n\t<li><code>pushed</code> \u662f <code>popped</code> \u7684\u6392\u5217\u3002</li>\n</ol>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 946 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/validate-stack-sequences/\">https://leetcode.cn/problems/validate-stack-sequences/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zhan-de-ya-ru-dan-chu-xu-lie-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9831.%20%E6%A0%88%E7%9A%84%E5%8E%8B%E5%85%A5%E3%80%81%E5%BC%B9%E5%87%BA%E5%BA%8F%E5%88%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9831.%20%E6%A0%88%E7%9A%84%E5%8E%8B%E5%85%A5%E3%80%81%E5%BC%B9%E5%87%BA%E5%BA%8F%E5%88%97/README.md", "tags": [], "tags_cn": [], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100305, "frontend_id": "\u9762\u8bd5\u989836", "title": "\u4e8c\u53c9\u641c\u7d22\u6811\u4e0e\u53cc\u5411\u94fe\u8868", "title_cn": "\u4e8c\u53c9\u641c\u7d22\u6811\u4e0e\u53cc\u5411\u94fe\u8868", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u68f5\u4e8c\u53c9\u641c\u7d22\u6811\uff0c\u5c06\u8be5\u4e8c\u53c9\u641c\u7d22\u6811\u8f6c\u6362\u6210\u4e00\u4e2a\u6392\u5e8f\u7684\u5faa\u73af\u53cc\u5411\u94fe\u8868\u3002\u8981\u6c42\u4e0d\u80fd\u521b\u5efa\u4efb\u4f55\u65b0\u7684\u8282\u70b9\uff0c\u53ea\u80fd\u8c03\u6574\u6811\u4e2d\u8282\u70b9\u6307\u9488\u7684\u6307\u5411\u3002</p>\n\n<p> </p>\n\n<p>\u4e3a\u4e86\u8ba9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u95ee\u9898\uff0c\u4ee5\u4e0b\u9762\u7684\u4e8c\u53c9\u641c\u7d22\u6811\u4e3a\u4f8b\uff1a</p>\n\n<p> </p>\n\n<p><img src=\"https://assets.leetcode.com/uploads/2018/10/12/bstdlloriginalbst.png\"></p>\n\n<p> </p>\n\n<p>\u6211\u4eec\u5e0c\u671b\u5c06\u8fd9\u4e2a\u4e8c\u53c9\u641c\u7d22\u6811\u8f6c\u5316\u4e3a\u53cc\u5411\u5faa\u73af\u94fe\u8868\u3002\u94fe\u8868\u4e2d\u7684\u6bcf\u4e2a\u8282\u70b9\u90fd\u6709\u4e00\u4e2a\u524d\u9a71\u548c\u540e\u7ee7\u6307\u9488\u3002\u5bf9\u4e8e\u53cc\u5411\u5faa\u73af\u94fe\u8868\uff0c\u7b2c\u4e00\u4e2a\u8282\u70b9\u7684\u524d\u9a71\u662f\u6700\u540e\u4e00\u4e2a\u8282\u70b9\uff0c\u6700\u540e\u4e00\u4e2a\u8282\u70b9\u7684\u540e\u7ee7\u662f\u7b2c\u4e00\u4e2a\u8282\u70b9\u3002</p>\n\n<p>\u4e0b\u56fe\u5c55\u793a\u4e86\u4e0a\u9762\u7684\u4e8c\u53c9\u641c\u7d22\u6811\u8f6c\u5316\u6210\u7684\u94fe\u8868\u3002“head” \u8868\u793a\u6307\u5411\u94fe\u8868\u4e2d\u6709\u6700\u5c0f\u5143\u7d20\u7684\u8282\u70b9\u3002</p>\n\n<p> </p>\n\n<p><img src=\"https://assets.leetcode.com/uploads/2018/10/12/bstdllreturndll.png\"></p>\n\n<p> </p>\n\n<p>\u7279\u522b\u5730\uff0c\u6211\u4eec\u5e0c\u671b\u53ef\u4ee5\u5c31\u5730\u5b8c\u6210\u8f6c\u6362\u64cd\u4f5c\u3002\u5f53\u8f6c\u5316\u5b8c\u6210\u4ee5\u540e\uff0c\u6811\u4e2d\u8282\u70b9\u7684\u5de6\u6307\u9488\u9700\u8981\u6307\u5411\u524d\u9a71\uff0c\u6811\u4e2d\u8282\u70b9\u7684\u53f3\u6307\u9488\u9700\u8981\u6307\u5411\u540e\u7ee7\u3002\u8fd8\u9700\u8981\u8fd4\u56de\u94fe\u8868\u4e2d\u7684\u7b2c\u4e00\u4e2a\u8282\u70b9\u7684\u6307\u9488\u3002</p>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u672c\u9898\u4e0e\u4e3b\u7ad9 426 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/\">https://leetcode.cn/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/</a></p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u6b64\u9898\u5bf9\u6bd4\u539f\u9898\u6709\u6539\u52a8\u3002</p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9836.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E4%B8%8E%E5%8F%8C%E5%90%91%E9%93%BE%E8%A1%A8/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9836.%20%E4%BA%8C%E5%8F%89%E6%90%9C%E7%B4%A2%E6%A0%91%E4%B8%8E%E5%8F%8C%E5%90%91%E9%93%BE%E8%A1%A8/README.md", "tags": ["Divide and Conquer"], "tags_cn": ["\u5206\u6cbb\u7b97\u6cd5"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100304, "frontend_id": "\u9762\u8bd5\u989842", "title": "\u8fde\u7eed\u5b50\u6570\u7ec4\u7684\u6700\u5927\u548c", "title_cn": "\u8fde\u7eed\u5b50\u6570\u7ec4\u7684\u6700\u5927\u548c", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u6574\u578b\u6570\u7ec4\uff0c\u6570\u7ec4\u91cc\u6709\u6b63\u6570\u4e5f\u6709\u8d1f\u6570\u3002\u6570\u7ec4\u4e2d\u7684\u4e00\u4e2a\u6216\u8fde\u7eed\u591a\u4e2a\u6574\u6570\u7ec4\u6210\u4e00\u4e2a\u5b50\u6570\u7ec4\u3002\u6c42\u6240\u6709\u5b50\u6570\u7ec4\u7684\u548c\u7684\u6700\u5927\u503c\u3002</p>\n\n<p>\u8981\u6c42\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> nums = [-2,1,-3,4,-1,2,1,-5,4]\n<strong>\u8f93\u51fa:</strong> 6\n<strong>\u89e3\u91ca:</strong> \u8fde\u7eed\u5b50\u6570\u7ec4 [4,-1,2,1] \u7684\u548c\u6700\u5927\uff0c\u4e3a 6\u3002</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= arr.length <= 10^5</code></li>\n\t<li><code>-100 <= arr[i] <= 100</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 53 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/maximum-subarray/\">https://leetcode.cn/problems/maximum-subarray/</a></p>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9842.%20%E8%BF%9E%E7%BB%AD%E5%AD%90%E6%95%B0%E7%BB%84%E7%9A%84%E6%9C%80%E5%A4%A7%E5%92%8C/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9842.%20%E8%BF%9E%E7%BB%AD%E5%AD%90%E6%95%B0%E7%BB%84%E7%9A%84%E6%9C%80%E5%A4%A7%E5%92%8C/README.md", "tags": ["Divide and Conquer", "Dynamic Programming"], "tags_cn": ["\u5206\u6cbb\u7b97\u6cd5", "\u52a8\u6001\u89c4\u5212"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100303, "frontend_id": "\u9762\u8bd5\u989841", "title": "\u6570\u636e\u6d41\u4e2d\u7684\u4e2d\u4f4d\u6570", "title_cn": "\u6570\u636e\u6d41\u4e2d\u7684\u4e2d\u4f4d\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5982\u4f55\u5f97\u5230\u4e00\u4e2a\u6570\u636e\u6d41\u4e2d\u7684\u4e2d\u4f4d\u6570\uff1f\u5982\u679c\u4ece\u6570\u636e\u6d41\u4e2d\u8bfb\u51fa\u5947\u6570\u4e2a\u6570\u503c\uff0c\u90a3\u4e48\u4e2d\u4f4d\u6570\u5c31\u662f\u6240\u6709\u6570\u503c\u6392\u5e8f\u4e4b\u540e\u4f4d\u4e8e\u4e2d\u95f4\u7684\u6570\u503c\u3002\u5982\u679c\u4ece\u6570\u636e\u6d41\u4e2d\u8bfb\u51fa\u5076\u6570\u4e2a\u6570\u503c\uff0c\u90a3\u4e48\u4e2d\u4f4d\u6570\u5c31\u662f\u6240\u6709\u6570\u503c\u6392\u5e8f\u4e4b\u540e\u4e2d\u95f4\u4e24\u4e2a\u6570\u7684\u5e73\u5747\u503c\u3002</p>\n\n<p>\u4f8b\u5982\uff0c</p>\n\n<p>[2,3,4] \u7684\u4e2d\u4f4d\u6570\u662f 3</p>\n\n<p>[2,3] \u7684\u4e2d\u4f4d\u6570\u662f (2 + 3) / 2 = 2.5</p>\n\n<p>\u8bbe\u8ba1\u4e00\u4e2a\u652f\u6301\u4ee5\u4e0b\u4e24\u79cd\u64cd\u4f5c\u7684\u6570\u636e\u7ed3\u6784\uff1a</p>\n\n<ul>\n\t<li>void addNum(int num) - \u4ece\u6570\u636e\u6d41\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6574\u6570\u5230\u6570\u636e\u7ed3\u6784\u4e2d\u3002</li>\n\t<li>double findMedian() - \u8fd4\u56de\u76ee\u524d\u6240\u6709\u5143\u7d20\u7684\u4e2d\u4f4d\u6570\u3002</li>\n</ul>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a\n</strong>["MedianFinder","addNum","addNum","findMedian","addNum","findMedian"]\n[[],[1],[2],[],[3],[]]\n<strong>\u8f93\u51fa\uff1a</strong>[null,null,null,1.50000,null,2.00000]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a\n</strong>["MedianFinder","addNum","findMedian","addNum","findMedian"]\n[[],[2],[],[3],[]]\n<strong>\u8f93\u51fa\uff1a</strong>[null,null,2.00000,null,2.50000]</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li>\u6700\u591a\u4f1a\u5bf9 <code>addNum\u3001findMedia</code>\u8fdb\u884c <code>50000</code> \u6b21\u8c03\u7528\u3002</li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 295 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/find-median-from-data-stream/\">https://leetcode.cn/problems/find-median-from-data-stream/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-ju-liu-zhong-de-zhong-wei-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9841.%20%E6%95%B0%E6%8D%AE%E6%B5%81%E4%B8%AD%E7%9A%84%E4%B8%AD%E4%BD%8D%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9841.%20%E6%95%B0%E6%8D%AE%E6%B5%81%E4%B8%AD%E7%9A%84%E4%B8%AD%E4%BD%8D%E6%95%B0/README.md", "tags": ["Heap", "Design"], "tags_cn": ["\u5806", "\u8bbe\u8ba1"], "difficulty": "Hard", "difficulty_cn": "\u56f0\u96be", "category": "lcof"}, {"id": 100302, "frontend_id": "\u9762\u8bd5\u989830", "title": "\u5305\u542bmin\u51fd\u6570\u7684\u6808", "title_cn": "\u5305\u542bmin\u51fd\u6570\u7684\u6808", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5b9a\u4e49\u6808\u7684\u6570\u636e\u7ed3\u6784\uff0c\u8bf7\u5728\u8be5\u7c7b\u578b\u4e2d\u5b9e\u73b0\u4e00\u4e2a\u80fd\u591f\u5f97\u5230\u6808\u7684\u6700\u5c0f\u5143\u7d20\u7684 min \u51fd\u6570\u5728\u8be5\u6808\u4e2d\uff0c\u8c03\u7528 min\u3001push \u53ca pop \u7684\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662f O(1)\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre>MinStack minStack = new MinStack();\nminStack.push(-2);\nminStack.push(0);\nminStack.push(-3);\nminStack.min(); --> \u8fd4\u56de -3.\nminStack.pop();\nminStack.top(); --> \u8fd4\u56de 0.\nminStack.min(); --> \u8fd4\u56de -2.\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li>\u5404\u51fd\u6570\u7684\u8c03\u7528\u603b\u6b21\u6570\u4e0d\u8d85\u8fc7 20000 \u6b21</li>\n</ol>\n\n<p> </p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 155 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/min-stack/\">https://leetcode.cn/problems/min-stack/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/bao-han-minhan-shu-de-zhan-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9830.%20%E5%8C%85%E5%90%ABmin%E5%87%BD%E6%95%B0%E7%9A%84%E6%A0%88/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9830.%20%E5%8C%85%E5%90%ABmin%E5%87%BD%E6%95%B0%E7%9A%84%E6%A0%88/README.md", "tags": ["Stack", "Design"], "tags_cn": ["\u6808", "\u8bbe\u8ba1"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100301, "frontend_id": "\u9762\u8bd5\u989840", "title": "\u6700\u5c0f\u7684k\u4e2a\u6570", "title_cn": "\u6700\u5c0f\u7684k\u4e2a\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u6574\u6570\u6570\u7ec4 <code>arr</code> \uff0c\u627e\u51fa\u5176\u4e2d\u6700\u5c0f\u7684 <code>k</code> \u4e2a\u6570\u3002\u4f8b\u5982\uff0c\u8f93\u51654\u30015\u30011\u30016\u30012\u30017\u30013\u30018\u8fd98\u4e2a\u6570\u5b57\uff0c\u5219\u6700\u5c0f\u76844\u4e2a\u6570\u5b57\u662f1\u30012\u30013\u30014\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>arr = [3,2,1], k = 2\n<strong>\u8f93\u51fa\uff1a</strong>[1,2] \u6216\u8005 [2,1]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>arr = [0,1,2,1], k = 1\n<strong>\u8f93\u51fa\uff1a</strong>[0]</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>0 <= k <= arr.length <= 10000</code></li>\n\t<li><code>0 <= arr[i] <= 10000</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zui-xiao-de-kge-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9840.%20%E6%9C%80%E5%B0%8F%E7%9A%84k%E4%B8%AA%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9840.%20%E6%9C%80%E5%B0%8F%E7%9A%84k%E4%B8%AA%E6%95%B0/README.md", "tags": ["Heap", "Divide and Conquer"], "tags_cn": ["\u5806", "\u5206\u6cbb\u7b97\u6cd5"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100300, "frontend_id": "\u9762\u8bd5\u989835", "title": "\u590d\u6742\u94fe\u8868\u7684\u590d\u5236", "title_cn": "\u590d\u6742\u94fe\u8868\u7684\u590d\u5236", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u5b9e\u73b0 <code>copyRandomList</code> \u51fd\u6570\uff0c\u590d\u5236\u4e00\u4e2a\u590d\u6742\u94fe\u8868\u3002\u5728\u590d\u6742\u94fe\u8868\u4e2d\uff0c\u6bcf\u4e2a\u8282\u70b9\u9664\u4e86\u6709\u4e00\u4e2a <code>next</code> \u6307\u9488\u6307\u5411\u4e0b\u4e00\u4e2a\u8282\u70b9\uff0c\u8fd8\u6709\u4e00\u4e2a <code>random</code> \u6307\u9488\u6307\u5411\u94fe\u8868\u4e2d\u7684\u4efb\u610f\u8282\u70b9\u6216\u8005 <code>null</code>\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<p><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2020/01/09/e1.png\"></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>head = [[7,null],[13,0],[11,4],[10,2],[1,0]]\n<strong>\u8f93\u51fa\uff1a</strong>[[7,null],[13,0],[11,4],[10,2],[1,0]]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<p><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2020/01/09/e2.png\"></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>head = [[1,1],[2,1]]\n<strong>\u8f93\u51fa\uff1a</strong>[[1,1],[2,1]]\n</pre>\n\n<p><strong>\u793a\u4f8b 3\uff1a</strong></p>\n\n<p><strong><img alt=\"\" src=\"https://assets.leetcode.cn/aliyun-lc-upload/uploads/2020/01/09/e3.png\"></strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>head = [[3,null],[3,0],[3,null]]\n<strong>\u8f93\u51fa\uff1a</strong>[[3,null],[3,0],[3,null]]\n</pre>\n\n<p><strong>\u793a\u4f8b 4\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>head = []\n<strong>\u8f93\u51fa\uff1a</strong>[]\n<strong>\u89e3\u91ca\uff1a</strong>\u7ed9\u5b9a\u7684\u94fe\u8868\u4e3a\u7a7a\uff08\u7a7a\u6307\u9488\uff09\uff0c\u56e0\u6b64\u8fd4\u56de null\u3002\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>-10000 <= Node.val <= 10000</code></li>\n\t<li><code>Node.random</code> \u4e3a\u7a7a\uff08null\uff09\u6216\u6307\u5411\u94fe\u8868\u4e2d\u7684\u8282\u70b9\u3002</li>\n\t<li>\u8282\u70b9\u6570\u76ee\u4e0d\u8d85\u8fc7 1000 \u3002</li>\n</ul>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u672c\u9898\u4e0e\u4e3b\u7ad9 138 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/copy-list-with-random-pointer/\">https://leetcode.cn/problems/copy-list-with-random-pointer/</a></p>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/fu-za-lian-biao-de-fu-zhi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9835.%20%E5%A4%8D%E6%9D%82%E9%93%BE%E8%A1%A8%E7%9A%84%E5%A4%8D%E5%88%B6/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9835.%20%E5%A4%8D%E6%9D%82%E9%93%BE%E8%A1%A8%E7%9A%84%E5%A4%8D%E5%88%B6/README.md", "tags": ["Linked List"], "tags_cn": ["\u94fe\u8868"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100299, "frontend_id": "\u9762\u8bd5\u989818", "title": "\u5220\u9664\u94fe\u8868\u7684\u8282\u70b9", "title_cn": "\u5220\u9664\u94fe\u8868\u7684\u8282\u70b9", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7ed9\u5b9a\u5355\u5411\u94fe\u8868\u7684\u5934\u6307\u9488\u548c\u4e00\u4e2a\u8981\u5220\u9664\u7684\u8282\u70b9\u7684\u503c\uff0c\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u5220\u9664\u8be5\u8282\u70b9\u3002</p>\n\n<p>\u8fd4\u56de\u5220\u9664\u540e\u7684\u94fe\u8868\u7684\u5934\u8282\u70b9\u3002</p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u6b64\u9898\u5bf9\u6bd4\u539f\u9898\u6709\u6539\u52a8</p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> head = [4,5,1,9], val = 5\n<strong>\u8f93\u51fa:</strong> [4,1,9]\n<strong>\u89e3\u91ca: </strong>\u7ed9\u5b9a\u4f60\u94fe\u8868\u4e2d\u503c\u4e3a 5 \u7684\u7b2c\u4e8c\u4e2a\u8282\u70b9\uff0c\u90a3\u4e48\u5728\u8c03\u7528\u4e86\u4f60\u7684\u51fd\u6570\u4e4b\u540e\uff0c\u8be5\u94fe\u8868\u5e94\u53d8\u4e3a 4 -> 1 -> 9.\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> head = [4,5,1,9], val = 1\n<strong>\u8f93\u51fa:</strong> [4,5,9]\n<strong>\u89e3\u91ca: </strong>\u7ed9\u5b9a\u4f60\u94fe\u8868\u4e2d\u503c\u4e3a 1 \u7684\u7b2c\u4e09\u4e2a\u8282\u70b9\uff0c\u90a3\u4e48\u5728\u8c03\u7528\u4e86\u4f60\u7684\u51fd\u6570\u4e4b\u540e\uff0c\u8be5\u94fe\u8868\u5e94\u53d8\u4e3a 4 -> 5 -> 9.\n</pre>\n\n<p> </p>\n\n<p><strong>\u8bf4\u660e\uff1a</strong></p>\n\n<ul>\n\t<li>\u9898\u76ee\u4fdd\u8bc1\u94fe\u8868\u4e2d\u8282\u70b9\u7684\u503c\u4e92\u4e0d\u76f8\u540c</li>\n\t<li>\u82e5\u4f7f\u7528 C \u6216 C++ \u8bed\u8a00\uff0c\u4f60\u4e0d\u9700\u8981 <code>free</code> \u6216 <code>delete</code> \u88ab\u5220\u9664\u7684\u8282\u70b9</li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shan-chu-lian-biao-de-jie-dian-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9818.%20%E5%88%A0%E9%99%A4%E9%93%BE%E8%A1%A8%E7%9A%84%E8%8A%82%E7%82%B9/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9818.%20%E5%88%A0%E9%99%A4%E9%93%BE%E8%A1%A8%E7%9A%84%E8%8A%82%E7%82%B9/README.md", "tags": ["Linked List"], "tags_cn": ["\u94fe\u8868"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100298, "frontend_id": "\u9762\u8bd5\u989824", "title": "\u53cd\u8f6c\u94fe\u8868", "title_cn": "\u53cd\u8f6c\u94fe\u8868", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\uff0c\u8f93\u5165\u4e00\u4e2a\u94fe\u8868\u7684\u5934\u8282\u70b9\uff0c\u53cd\u8f6c\u8be5\u94fe\u8868\u5e76\u8f93\u51fa\u53cd\u8f6c\u540e\u94fe\u8868\u7684\u5934\u8282\u70b9\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> 1->2->3->4->5->NULL\n<strong>\u8f93\u51fa:</strong> 5->4->3->2->1->NULL</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u8282\u70b9\u4e2a\u6570 <= 5000</code></p>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f</strong>\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 206 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/reverse-linked-list/\">https://leetcode.cn/problems/reverse-linked-list/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/fan-zhuan-lian-biao-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9824.%20%E5%8F%8D%E8%BD%AC%E9%93%BE%E8%A1%A8/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9824.%20%E5%8F%8D%E8%BD%AC%E9%93%BE%E8%A1%A8/README.md", "tags": ["Linked List"], "tags_cn": ["\u94fe\u8868"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100297, "frontend_id": "\u9762\u8bd5\u989819", "title": "\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d", "title_cn": "\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\u7528\u6765\u5339\u914d\u5305\u542b<code>'. '</code>\u548c<code>'*'</code>\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u6a21\u5f0f\u4e2d\u7684\u5b57\u7b26<code>'.'</code>\u8868\u793a\u4efb\u610f\u4e00\u4e2a\u5b57\u7b26\uff0c\u800c<code>'*'</code>\u8868\u793a\u5b83\u524d\u9762\u7684\u5b57\u7b26\u53ef\u4ee5\u51fa\u73b0\u4efb\u610f\u6b21\uff08\u542b0\u6b21\uff09\u3002\u5728\u672c\u9898\u4e2d\uff0c\u5339\u914d\u662f\u6307\u5b57\u7b26\u4e32\u7684\u6240\u6709\u5b57\u7b26\u5339\u914d\u6574\u4e2a\u6a21\u5f0f\u3002\u4f8b\u5982\uff0c\u5b57\u7b26\u4e32<code>"aaa"</code>\u4e0e\u6a21\u5f0f<code>"a.a"</code>\u548c<code>"ab*ac*a"</code>\u5339\u914d\uff0c\u4f46\u4e0e<code>"aa.a"</code>\u548c<code>"ab*a"</code>\u5747\u4e0d\u5339\u914d\u3002</p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong>\ns = "aa"\np = "a"\n<strong>\u8f93\u51fa:</strong> false\n<strong>\u89e3\u91ca:</strong> "a" \u65e0\u6cd5\u5339\u914d "aa" \u6574\u4e2a\u5b57\u7b26\u4e32\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong>\ns = "aa"\np = "a*"\n<strong>\u8f93\u51fa:</strong> true\n<strong>\u89e3\u91ca:</strong> \u56e0\u4e3a '*' \u4ee3\u8868\u53ef\u4ee5\u5339\u914d\u96f6\u4e2a\u6216\u591a\u4e2a\u524d\u9762\u7684\u90a3\u4e00\u4e2a\u5143\u7d20, \u5728\u8fd9\u91cc\u524d\u9762\u7684\u5143\u7d20\u5c31\u662f 'a'\u3002\u56e0\u6b64\uff0c\u5b57\u7b26\u4e32 "aa" \u53ef\u88ab\u89c6\u4e3a 'a' \u91cd\u590d\u4e86\u4e00\u6b21\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 3:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong>\ns = "ab"\np = ".*"\n<strong>\u8f93\u51fa:</strong> true\n<strong>\u89e3\u91ca:</strong> ".*" \u8868\u793a\u53ef\u5339\u914d\u96f6\u4e2a\u6216\u591a\u4e2a\uff08'*'\uff09\u4efb\u610f\u5b57\u7b26\uff08'.'\uff09\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 4:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong>\ns = "aab"\np = "c*a*b"\n<strong>\u8f93\u51fa:</strong> true\n<strong>\u89e3\u91ca:</strong> \u56e0\u4e3a '*' \u8868\u793a\u96f6\u4e2a\u6216\u591a\u4e2a\uff0c\u8fd9\u91cc 'c' \u4e3a 0 \u4e2a, 'a' \u88ab\u91cd\u590d\u4e00\u6b21\u3002\u56e0\u6b64\u53ef\u4ee5\u5339\u914d\u5b57\u7b26\u4e32 "aab"\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 5:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong>\ns = "mississippi"\np = "mis*is*p*."\n<strong>\u8f93\u51fa:</strong> false</pre>\n\n<ul>\n\t<li><code>s</code> \u53ef\u80fd\u4e3a\u7a7a\uff0c\u4e14\u53ea\u5305\u542b\u4ece <code>a-z</code> \u7684\u5c0f\u5199\u5b57\u6bcd\u3002</li>\n\t<li><code>p</code> \u53ef\u80fd\u4e3a\u7a7a\uff0c\u4e14\u53ea\u5305\u542b\u4ece <code>a-z</code> \u7684\u5c0f\u5199\u5b57\u6bcd\uff0c\u4ee5\u53ca\u5b57\u7b26 <code>.</code> \u548c <code>*</code>\u3002</li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 10 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/regular-expression-matching/\">https://leetcode.cn/problems/regular-expression-matching/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zheng-ze-biao-da-shi-pi-pei-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9819.%20%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%8C%B9%E9%85%8D/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9819.%20%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%8C%B9%E9%85%8D/README.md", "tags": ["Dynamic Programming"], "tags_cn": ["\u52a8\u6001\u89c4\u5212"], "difficulty": "Hard", "difficulty_cn": "\u56f0\u96be", "category": "lcof"}, {"id": 100296, "frontend_id": "\u9762\u8bd5\u989817", "title": "\u6253\u5370\u4ece1\u5230\u6700\u5927\u7684n\u4f4d\u6570", "title_cn": "\u6253\u5370\u4ece1\u5230\u6700\u5927\u7684n\u4f4d\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u6570\u5b57 <code>n</code>\uff0c\u6309\u987a\u5e8f\u6253\u5370\u51fa\u4ece 1 \u5230\u6700\u5927\u7684 n \u4f4d\u5341\u8fdb\u5236\u6570\u3002\u6bd4\u5982\u8f93\u5165 3\uff0c\u5219\u6253\u5370\u51fa 1\u30012\u30013 \u4e00\u76f4\u5230\u6700\u5927\u7684 3 \u4f4d\u6570 999\u3002</p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> n = 1\n<strong>\u8f93\u51fa:</strong> [1,2,3,4,5,6,7,8,9]\n</pre>\n\n<p> </p>\n\n<p>\u8bf4\u660e\uff1a</p>\n\n<ul>\n\t<li>\u7528\u8fd4\u56de\u4e00\u4e2a\u6574\u6570\u5217\u8868\u6765\u4ee3\u66ff\u6253\u5370</li>\n\t<li>n \u4e3a\u6b63\u6574\u6570</li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/da-yin-cong-1dao-zui-da-de-nwei-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9817.%20%E6%89%93%E5%8D%B0%E4%BB%8E1%E5%88%B0%E6%9C%80%E5%A4%A7%E7%9A%84n%E4%BD%8D%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9817.%20%E6%89%93%E5%8D%B0%E4%BB%8E1%E5%88%B0%E6%9C%80%E5%A4%A7%E7%9A%84n%E4%BD%8D%E6%95%B0/README.md", "tags": ["Math"], "tags_cn": ["\u6570\u5b66"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100295, "frontend_id": "\u9762\u8bd5\u989816", "title": "\u6570\u503c\u7684\u6574\u6570\u6b21\u65b9", "title_cn": "\u6570\u503c\u7684\u6574\u6570\u6b21\u65b9", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5b9e\u73b0\u51fd\u6570double Power(double base, int exponent)\uff0c\u6c42base\u7684exponent\u6b21\u65b9\u3002\u4e0d\u5f97\u4f7f\u7528\u5e93\u51fd\u6570\uff0c\u540c\u65f6\u4e0d\u9700\u8981\u8003\u8651\u5927\u6570\u95ee\u9898\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> 2.00000, 10\n<strong>\u8f93\u51fa:</strong> 1024.00000\n</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> 2.10000, 3\n<strong>\u8f93\u51fa:</strong> 9.26100\n</pre>\n\n<p><strong>\u793a\u4f8b 3:</strong></p>\n\n<pre><strong>\u8f93\u5165:</strong> 2.00000, -2\n<strong>\u8f93\u51fa:</strong> 0.25000\n<strong>\u89e3\u91ca:</strong> 2<sup>-2</sup> = 1/2<sup>2</sup> = 1/4 = 0.25</pre>\n\n<p> </p>\n\n<p><strong>\u8bf4\u660e:</strong></p>\n\n<ul>\n\t<li>-100.0 < <em>x</em> < 100.0</li>\n\t<li><em>n</em> \u662f 32 \u4f4d\u6709\u7b26\u53f7\u6574\u6570\uff0c\u5176\u6570\u503c\u8303\u56f4\u662f [−2<sup>31</sup>, 2<sup>31 </sup>− 1] \u3002</li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 50 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/powx-n/\">https://leetcode.cn/problems/powx-n/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-zhi-de-zheng-shu-ci-fang-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9816.%20%E6%95%B0%E5%80%BC%E7%9A%84%E6%95%B4%E6%95%B0%E6%AC%A1%E6%96%B9/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9816.%20%E6%95%B0%E5%80%BC%E7%9A%84%E6%95%B4%E6%95%B0%E6%AC%A1%E6%96%B9/README.md", "tags": ["Recursion"], "tags_cn": ["\u9012\u5f52"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100294, "frontend_id": "\u9762\u8bd5\u989822", "title": "\u94fe\u8868\u4e2d\u5012\u6570\u7b2ck\u4e2a\u8282\u70b9", "title_cn": "\u94fe\u8868\u4e2d\u5012\u6570\u7b2ck\u4e2a\u8282\u70b9", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u94fe\u8868\uff0c\u8f93\u51fa\u8be5\u94fe\u8868\u4e2d\u5012\u6570\u7b2ck\u4e2a\u8282\u70b9\u3002\u4e3a\u4e86\u7b26\u5408\u5927\u591a\u6570\u4eba\u7684\u4e60\u60ef\uff0c\u672c\u9898\u4ece1\u5f00\u59cb\u8ba1\u6570\uff0c\u5373\u94fe\u8868\u7684\u5c3e\u8282\u70b9\u662f\u5012\u6570\u7b2c1\u4e2a\u8282\u70b9\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u94fe\u8868\u67096\u4e2a\u8282\u70b9\uff0c\u4ece\u5934\u8282\u70b9\u5f00\u59cb\uff0c\u5b83\u4eec\u7684\u503c\u4f9d\u6b21\u662f1\u30012\u30013\u30014\u30015\u30016\u3002\u8fd9\u4e2a\u94fe\u8868\u7684\u5012\u6570\u7b2c3\u4e2a\u8282\u70b9\u662f\u503c\u4e3a4\u7684\u8282\u70b9\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b\uff1a</strong></p>\n\n<pre>\u7ed9\u5b9a\u4e00\u4e2a\u94fe\u8868: <strong>1->2->3->4->5</strong>, \u548c <em>k </em><strong>= 2</strong>.\n\n\u8fd4\u56de\u94fe\u8868 4<strong>->5</strong>.</pre>\n", "url": "", "url_cn": "https://leetcode.cn/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9822.%20%E9%93%BE%E8%A1%A8%E4%B8%AD%E5%80%92%E6%95%B0%E7%AC%ACk%E4%B8%AA%E8%8A%82%E7%82%B9/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9822.%20%E9%93%BE%E8%A1%A8%E4%B8%AD%E5%80%92%E6%95%B0%E7%AC%ACk%E4%B8%AA%E8%8A%82%E7%82%B9/README.md", "tags": ["Linked List", "Two Pointers"], "tags_cn": ["\u94fe\u8868", "\u53cc\u6307\u9488"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100293, "frontend_id": "\u9762\u8bd5\u989829", "title": "\u987a\u65f6\u9488\u6253\u5370\u77e9\u9635", "title_cn": "\u987a\u65f6\u9488\u6253\u5370\u77e9\u9635", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u77e9\u9635\uff0c\u6309\u7167\u4ece\u5916\u5411\u91cc\u4ee5\u987a\u65f6\u9488\u7684\u987a\u5e8f\u4f9d\u6b21\u6253\u5370\u51fa\u6bcf\u4e00\u4e2a\u6570\u5b57\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>matrix = [[1,2,3],[4,5,6],[7,8,9]]\n<strong>\u8f93\u51fa\uff1a</strong>[1,2,3,6,9,8,7,4,5]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>matrix = [[1,2,3,4],[5,6,7,8],[9,10,11,12]]\n<strong>\u8f93\u51fa\uff1a</strong>[1,2,3,4,8,12,11,10,9,5,6,7]\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<ul>\n\t<li><code>0 <= matrix.length <= 100</code></li>\n\t<li><code>0 <= matrix[i].length <= 100</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 54 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/spiral-matrix/\">https://leetcode.cn/problems/spiral-matrix/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shun-shi-zhen-da-yin-ju-zhen-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9829.%20%E9%A1%BA%E6%97%B6%E9%92%88%E6%89%93%E5%8D%B0%E7%9F%A9%E9%98%B5/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9829.%20%E9%A1%BA%E6%97%B6%E9%92%88%E6%89%93%E5%8D%B0%E7%9F%A9%E9%98%B5/README.md", "tags": ["Array"], "tags_cn": ["\u6570\u7ec4"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100292, "frontend_id": "\u9762\u8bd5\u989815", "title": "\u4e8c\u8fdb\u5236\u4e2d1\u7684\u4e2a\u6570", "title_cn": "\u4e8c\u8fdb\u5236\u4e2d1\u7684\u4e2a\u6570", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\uff0c\u8f93\u5165\u4e00\u4e2a\u6574\u6570\uff0c\u8f93\u51fa\u8be5\u6570\u4e8c\u8fdb\u5236\u8868\u793a\u4e2d 1 \u7684\u4e2a\u6570\u3002\u4f8b\u5982\uff0c\u628a 9 \u8868\u793a\u6210\u4e8c\u8fdb\u5236\u662f 1001\uff0c\u6709 2 \u4f4d\u662f 1\u3002\u56e0\u6b64\uff0c\u5982\u679c\u8f93\u5165 9\uff0c\u5219\u8be5\u51fd\u6570\u8f93\u51fa 2\u3002</p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>00000000000000000000000000001011\n<strong>\u8f93\u51fa\uff1a</strong>3\n<strong>\u89e3\u91ca\uff1a</strong>\u8f93\u5165\u7684\u4e8c\u8fdb\u5236\u4e32 <code><strong>00000000000000000000000000001011</strong> \u4e2d\uff0c\u5171\u6709\u4e09\u4f4d\u4e3a '1'\u3002</code>\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>00000000000000000000000010000000\n<strong>\u8f93\u51fa\uff1a</strong>1\n<strong>\u89e3\u91ca\uff1a</strong>\u8f93\u5165\u7684\u4e8c\u8fdb\u5236\u4e32 <strong>00000000000000000000000010000000</strong> \u4e2d\uff0c\u5171\u6709\u4e00\u4f4d\u4e3a '1'\u3002\n</pre>\n\n<p><strong>\u793a\u4f8b 3\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>11111111111111111111111111111101\n<strong>\u8f93\u51fa\uff1a</strong>31\n<strong>\u89e3\u91ca\uff1a</strong>\u8f93\u5165\u7684\u4e8c\u8fdb\u5236\u4e32 <strong>11111111111111111111111111111101</strong> \u4e2d\uff0c\u5171\u6709 31 \u4f4d\u4e3a '1'\u3002</pre>\n\n<p> </p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 191 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/number-of-1-bits/\">https://leetcode.cn/problems/number-of-1-bits/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-jin-zhi-zhong-1de-ge-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9815.%20%E4%BA%8C%E8%BF%9B%E5%88%B6%E4%B8%AD1%E7%9A%84%E4%B8%AA%E6%95%B0/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9815.%20%E4%BA%8C%E8%BF%9B%E5%88%B6%E4%B8%AD1%E7%9A%84%E4%B8%AA%E6%95%B0/README.md", "tags": ["Bit Manipulation"], "tags_cn": ["\u4f4d\u8fd0\u7b97"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100291, "frontend_id": "\u9762\u8bd5\u989821", "title": "\u8c03\u6574\u6570\u7ec4\u987a\u5e8f\u4f7f\u5947\u6570\u4f4d\u4e8e\u5076\u6570\u524d\u9762", "title_cn": "\u8c03\u6574\u6570\u7ec4\u987a\u5e8f\u4f7f\u5947\u6570\u4f4d\u4e8e\u5076\u6570\u524d\u9762", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u6574\u6570\u6570\u7ec4\uff0c\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\u6765\u8c03\u6574\u8be5\u6570\u7ec4\u4e2d\u6570\u5b57\u7684\u987a\u5e8f\uff0c\u4f7f\u5f97\u6240\u6709\u5947\u6570\u4f4d\u4e8e\u6570\u7ec4\u7684\u524d\u534a\u90e8\u5206\uff0c\u6240\u6709\u5076\u6570\u4f4d\u4e8e\u6570\u7ec4\u7684\u540e\u534a\u90e8\u5206\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>nums = [1,2,3,4]\n<strong>\u8f93\u51fa\uff1a</strong>[1,3,2,4] \n<strong>\u6ce8\uff1a</strong>[3,1,2,4] \u4e5f\u662f\u6b63\u786e\u7684\u7b54\u6848\u4e4b\u4e00\u3002</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ol>\n\t<li><code>1 <= nums.length <= 50000</code></li>\n\t<li><code>1 <= nums[i] <= 10000</code></li>\n</ol>\n", "url": "", "url_cn": "https://leetcode.cn/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9821.%20%E8%B0%83%E6%95%B4%E6%95%B0%E7%BB%84%E9%A1%BA%E5%BA%8F%E4%BD%BF%E5%A5%87%E6%95%B0%E4%BD%8D%E4%BA%8E%E5%81%B6%E6%95%B0%E5%89%8D%E9%9D%A2/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9821.%20%E8%B0%83%E6%95%B4%E6%95%B0%E7%BB%84%E9%A1%BA%E5%BA%8F%E4%BD%BF%E5%A5%87%E6%95%B0%E4%BD%8D%E4%BA%8E%E5%81%B6%E6%95%B0%E5%89%8D%E9%9D%A2/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100290, "frontend_id": "\u9762\u8bd5\u989820", "title": "\u8868\u793a\u6570\u503c\u7684\u5b57\u7b26\u4e32", "title_cn": "\u8868\u793a\u6570\u503c\u7684\u5b57\u7b26\u4e32", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u8bf7\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\u7528\u6765\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u8868\u793a\u6570\u503c\uff08\u5305\u62ec\u6574\u6570\u548c\u5c0f\u6570\uff09\u3002\u4f8b\u5982\uff0c\u5b57\u7b26\u4e32"+100"\u3001"5e2"\u3001"-123"\u3001"3.1416"\u3001"0123"\u53ca"-1E-16"\u90fd\u8868\u793a\u6570\u503c\uff0c\u4f46"12e"\u3001"1a3.14"\u3001"1.2.3"\u3001"+-5"\u53ca"12e+5.4"\u90fd\u4e0d\u662f\u3002</p>\n\n<p> </p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 65 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/valid-number/\">https://leetcode.cn/problems/valid-number/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/biao-shi-shu-zhi-de-zi-fu-chuan-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9820.%20%E8%A1%A8%E7%A4%BA%E6%95%B0%E5%80%BC%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9820.%20%E8%A1%A8%E7%A4%BA%E6%95%B0%E5%80%BC%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2/README.md", "tags": ["Math"], "tags_cn": ["\u6570\u5b66"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100289, "frontend_id": "\u9762\u8bd5\u989828", "title": "\u5bf9\u79f0\u7684\u4e8c\u53c9\u6811", "title_cn": "\u5bf9\u79f0\u7684\u4e8c\u53c9\u6811", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u6765\u5224\u65ad\u4e00\u68f5\u4e8c\u53c9\u6811\u662f\u4e0d\u662f\u5bf9\u79f0\u7684\u3002\u5982\u679c\u4e00\u68f5\u4e8c\u53c9\u6811\u548c\u5b83\u7684\u955c\u50cf\u4e00\u6837\uff0c\u90a3\u4e48\u5b83\u662f\u5bf9\u79f0\u7684\u3002</p>\n\n<p>\u4f8b\u5982\uff0c\u4e8c\u53c9\u6811 [1,2,2,3,4,4,3] \u662f\u5bf9\u79f0\u7684\u3002</p>\n\n<p><code> 1<br>\n / \\<br>\n 2 2<br>\n / \\ / \\<br>\n3 4 4 3</code><br>\n\u4f46\u662f\u4e0b\u9762\u8fd9\u4e2a [1,2,2,null,3,null,3] \u5219\u4e0d\u662f\u955c\u50cf\u5bf9\u79f0\u7684:</p>\n\n<p><code> 1<br>\n / \\<br>\n 2 2<br>\n \\ \\<br>\n 3 3</code></p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>root = [1,2,2,3,4,4,3]\n<strong>\u8f93\u51fa\uff1a</strong>true\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>root = [1,2,2,null,3,null,3]\n<strong>\u8f93\u51fa\uff1a</strong>false</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u8282\u70b9\u4e2a\u6570 <= 1000</code></p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 101 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/symmetric-tree/\">https://leetcode.cn/problems/symmetric-tree/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/dui-cheng-de-er-cha-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9828.%20%E5%AF%B9%E7%A7%B0%E7%9A%84%E4%BA%8C%E5%8F%89%E6%A0%91/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9828.%20%E5%AF%B9%E7%A7%B0%E7%9A%84%E4%BA%8C%E5%8F%89%E6%A0%91/README.md", "tags": ["Tree"], "tags_cn": ["\u6811"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100288, "frontend_id": "\u9762\u8bd5\u989827", "title": "\u4e8c\u53c9\u6811\u7684\u955c\u50cf", "title_cn": "\u4e8c\u53c9\u6811\u7684\u955c\u50cf", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u5b8c\u6210\u4e00\u4e2a\u51fd\u6570\uff0c\u8f93\u5165\u4e00\u4e2a\u4e8c\u53c9\u6811\uff0c\u8be5\u51fd\u6570\u8f93\u51fa\u5b83\u7684\u955c\u50cf\u3002</p>\n\n<p>\u4f8b\u5982\u8f93\u5165\uff1a</p>\n\n<p><code> 4<br>\n / \\<br>\n 2 7<br>\n / \\ / \\<br>\n1 3 6 9</code><br>\n\u955c\u50cf\u8f93\u51fa\uff1a</p>\n\n<p><code> 4<br>\n / \\<br>\n 7 2<br>\n / \\ / \\<br>\n9 6 3 1</code></p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>root = [4,2,7,1,3,6,9]\n<strong>\u8f93\u51fa\uff1a</strong>[4,7,2,9,6,3,1]\n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u8282\u70b9\u4e2a\u6570 <= 1000</code></p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 226 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/invert-binary-tree/\">https://leetcode.cn/problems/invert-binary-tree/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-cha-shu-de-jing-xiang-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9827.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E9%95%9C%E5%83%8F/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9827.%20%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E9%95%9C%E5%83%8F/README.md", "tags": ["Tree"], "tags_cn": ["\u6811"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100287, "frontend_id": "\u9762\u8bd5\u989826", "title": "\u6811\u7684\u5b50\u7ed3\u6784", "title_cn": "\u6811\u7684\u5b50\u7ed3\u6784", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e24\u68f5\u4e8c\u53c9\u6811A\u548cB\uff0c\u5224\u65adB\u662f\u4e0d\u662fA\u7684\u5b50\u7ed3\u6784\u3002(\u7ea6\u5b9a\u7a7a\u6811\u4e0d\u662f\u4efb\u610f\u4e00\u4e2a\u6811\u7684\u5b50\u7ed3\u6784)</p>\n\n<p>B\u662fA\u7684\u5b50\u7ed3\u6784\uff0c \u5373 A\u4e2d\u6709\u51fa\u73b0\u548cB\u76f8\u540c\u7684\u7ed3\u6784\u548c\u8282\u70b9\u503c\u3002</p>\n\n<p>\u4f8b\u5982:<br>\n\u7ed9\u5b9a\u7684\u6811 A:</p>\n\n<p><code> 3<br>\n / \\<br>\n 4 5<br>\n / \\<br>\n 1 2</code><br>\n\u7ed9\u5b9a\u7684\u6811 B\uff1a</p>\n\n<p><code> 4 <br>\n /<br>\n 1</code><br>\n\u8fd4\u56de true\uff0c\u56e0\u4e3a B \u4e0e A \u7684\u4e00\u4e2a\u5b50\u6811\u62e5\u6709\u76f8\u540c\u7684\u7ed3\u6784\u548c\u8282\u70b9\u503c\u3002</p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>A = [1,2,3], B = [3,1]\n<strong>\u8f93\u51fa\uff1a</strong>false\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>A = [3,4,5,1,2], B = [4,1]\n<strong>\u8f93\u51fa\uff1a</strong>true</pre>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u8282\u70b9\u4e2a\u6570 <= 10000</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-de-zi-jie-gou-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9826.%20%E6%A0%91%E7%9A%84%E5%AD%90%E7%BB%93%E6%9E%84/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9826.%20%E6%A0%91%E7%9A%84%E5%AD%90%E7%BB%93%E6%9E%84/README.md", "tags": ["Tree"], "tags_cn": ["\u6811"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100286, "frontend_id": "\u9762\u8bd5\u989825", "title": "\u5408\u5e76\u4e24\u4e2a\u6392\u5e8f\u7684\u94fe\u8868", "title_cn": "\u5408\u5e76\u4e24\u4e2a\u6392\u5e8f\u7684\u94fe\u8868", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8f93\u5165\u4e24\u4e2a\u9012\u589e\u6392\u5e8f\u7684\u94fe\u8868\uff0c\u5408\u5e76\u8fd9\u4e24\u4e2a\u94fe\u8868\u5e76\u4f7f\u65b0\u94fe\u8868\u4e2d\u7684\u8282\u70b9\u4ecd\u7136\u662f\u9012\u589e\u6392\u5e8f\u7684\u3002</p>\n\n<p><strong>\u793a\u4f8b1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>1->2->4, 1->3->4\n<strong>\u8f93\u51fa\uff1a</strong>1->1->2->3->4->4</pre>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u94fe\u8868\u957f\u5ea6 <= 1000</code></p>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 21 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/merge-two-sorted-lists/\">https://leetcode.cn/problems/merge-two-sorted-lists/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/he-bing-liang-ge-pai-xu-de-lian-biao-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9825.%20%E5%90%88%E5%B9%B6%E4%B8%A4%E4%B8%AA%E6%8E%92%E5%BA%8F%E7%9A%84%E9%93%BE%E8%A1%A8/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9825.%20%E5%90%88%E5%B9%B6%E4%B8%A4%E4%B8%AA%E6%8E%92%E5%BA%8F%E7%9A%84%E9%93%BE%E8%A1%A8/README.md", "tags": ["Divide and Conquer"], "tags_cn": ["\u5206\u6cbb\u7b97\u6cd5"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100285, "frontend_id": "\u9762\u8bd5\u989814- II", "title": "\u526a\u7ef3\u5b50 II", "title_cn": "\u526a\u7ef3\u5b50 II", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7ed9\u4f60\u4e00\u6839\u957f\u5ea6\u4e3a <code>n</code> \u7684\u7ef3\u5b50\uff0c\u8bf7\u628a\u7ef3\u5b50\u526a\u6210\u6574\u6570\u957f\u5ea6\u7684 <code>m</code> \u6bb5\uff08m\u3001n\u90fd\u662f\u6574\u6570\uff0cn>1\u5e76\u4e14m>1\uff09\uff0c\u6bcf\u6bb5\u7ef3\u5b50\u7684\u957f\u5ea6\u8bb0\u4e3a <code>k[0],k[1]...k[m]</code> \u3002\u8bf7\u95ee <code>k[0]*k[1]*...*k[m]</code> \u53ef\u80fd\u7684\u6700\u5927\u4e58\u79ef\u662f\u591a\u5c11\uff1f\u4f8b\u5982\uff0c\u5f53\u7ef3\u5b50\u7684\u957f\u5ea6\u662f8\u65f6\uff0c\u6211\u4eec\u628a\u5b83\u526a\u6210\u957f\u5ea6\u5206\u522b\u4e3a2\u30013\u30013\u7684\u4e09\u6bb5\uff0c\u6b64\u65f6\u5f97\u5230\u7684\u6700\u5927\u4e58\u79ef\u662f18\u3002</p>\n\n<p>\u7b54\u6848\u9700\u8981\u53d6\u6a21 1e9+7\uff081000000007\uff09\uff0c\u5982\u8ba1\u7b97\u521d\u59cb\u7ed3\u679c\u4e3a\uff1a1000000008\uff0c\u8bf7\u8fd4\u56de 1\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>2\n<strong>\u8f93\u51fa: </strong>1\n<strong>\u89e3\u91ca: </strong>2 = 1 + 1, 1 × 1 = 1</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>10\n<strong>\u8f93\u51fa: </strong>36\n<strong>\u89e3\u91ca: </strong>10 = 3 + 3 + 4, 3 × 3 × 4 = 36</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>2 <= n <= 1000</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 343 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/integer-break/\">https://leetcode.cn/problems/integer-break/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/jian-sheng-zi-ii-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9814-%20II.%20%E5%89%AA%E7%BB%B3%E5%AD%90%20II/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9814-%20II.%20%E5%89%AA%E7%BB%B3%E5%AD%90%20II/README.md", "tags": ["Math", "Dynamic Programming"], "tags_cn": ["\u6570\u5b66", "\u52a8\u6001\u89c4\u5212"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100284, "frontend_id": "\u9762\u8bd5\u989814- I", "title": "\u526a\u7ef3\u5b50", "title_cn": "\u526a\u7ef3\u5b50", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7ed9\u4f60\u4e00\u6839\u957f\u5ea6\u4e3a <code>n</code> \u7684\u7ef3\u5b50\uff0c\u8bf7\u628a\u7ef3\u5b50\u526a\u6210\u6574\u6570\u957f\u5ea6\u7684 <code>m</code> \u6bb5\uff08m\u3001n\u90fd\u662f\u6574\u6570\uff0cn>1\u5e76\u4e14m>1\uff09\uff0c\u6bcf\u6bb5\u7ef3\u5b50\u7684\u957f\u5ea6\u8bb0\u4e3a <code>k[0],k[1]...k[m]</code> \u3002\u8bf7\u95ee <code>k[0]*k[1]*...*k[m]</code> \u53ef\u80fd\u7684\u6700\u5927\u4e58\u79ef\u662f\u591a\u5c11\uff1f\u4f8b\u5982\uff0c\u5f53\u7ef3\u5b50\u7684\u957f\u5ea6\u662f8\u65f6\uff0c\u6211\u4eec\u628a\u5b83\u526a\u6210\u957f\u5ea6\u5206\u522b\u4e3a2\u30013\u30013\u7684\u4e09\u6bb5\uff0c\u6b64\u65f6\u5f97\u5230\u7684\u6700\u5927\u4e58\u79ef\u662f18\u3002</p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>2\n<strong>\u8f93\u51fa: </strong>1\n<strong>\u89e3\u91ca: </strong>2 = 1 + 1, 1 × 1 = 1</pre>\n\n<p><strong>\u793a\u4f8b 2:</strong></p>\n\n<pre><strong>\u8f93\u5165: </strong>10\n<strong>\u8f93\u51fa: </strong>36\n<strong>\u89e3\u91ca: </strong>10 = 3 + 3 + 4, 3 × 3 × 4 = 36</pre>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>2 <= n <= 58</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 343 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/integer-break/\">https://leetcode.cn/problems/integer-break/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/jian-sheng-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9814-%20I.%20%E5%89%AA%E7%BB%B3%E5%AD%90/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9814-%20I.%20%E5%89%AA%E7%BB%B3%E5%AD%90/README.md", "tags": ["Math", "Dynamic Programming"], "tags_cn": ["\u6570\u5b66", "\u52a8\u6001\u89c4\u5212"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100283, "frontend_id": "\u9762\u8bd5\u989807", "title": "\u91cd\u5efa\u4e8c\u53c9\u6811", "title_cn": "\u91cd\u5efa\u4e8c\u53c9\u6811", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u8f93\u5165\u67d0\u4e8c\u53c9\u6811\u7684\u524d\u5e8f\u904d\u5386\u548c\u4e2d\u5e8f\u904d\u5386\u7684\u7ed3\u679c\uff0c\u8bf7\u91cd\u5efa\u8be5\u4e8c\u53c9\u6811\u3002\u5047\u8bbe\u8f93\u5165\u7684\u524d\u5e8f\u904d\u5386\u548c\u4e2d\u5e8f\u904d\u5386\u7684\u7ed3\u679c\u4e2d\u90fd\u4e0d\u542b\u91cd\u590d\u7684\u6570\u5b57\u3002</p>\n\n<p> </p>\n\n<p>\u4f8b\u5982\uff0c\u7ed9\u51fa</p>\n\n<pre>\u524d\u5e8f\u904d\u5386 preorder = [3,9,20,15,7]\n\u4e2d\u5e8f\u904d\u5386 inorder = [9,3,15,20,7]</pre>\n\n<p>\u8fd4\u56de\u5982\u4e0b\u7684\u4e8c\u53c9\u6811\uff1a</p>\n\n<pre> 3\n / \\\n 9 20\n / \\\n 15 7</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u8282\u70b9\u4e2a\u6570 <= 5000</code></p>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f</strong>\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 105 \u9898\u91cd\u590d\uff1a<a href=\"https://leetcode.cn/problems/construct-binary-tree-from-preorder-and-inorder-traversal/\">https://leetcode.cn/problems/construct-binary-tree-from-preorder-and-inorder-traversal/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/zhong-jian-er-cha-shu-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9807.%20%E9%87%8D%E5%BB%BA%E4%BA%8C%E5%8F%89%E6%A0%91/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9807.%20%E9%87%8D%E5%BB%BA%E4%BA%8C%E5%8F%89%E6%A0%91/README.md", "tags": ["Tree", "Recursion"], "tags_cn": ["\u6811", "\u9012\u5f52"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100282, "frontend_id": "\u9762\u8bd5\u989806", "title": "\u4ece\u5c3e\u5230\u5934\u6253\u5370\u94fe\u8868", "title_cn": "\u4ece\u5c3e\u5230\u5934\u6253\u5370\u94fe\u8868", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u8f93\u5165\u4e00\u4e2a\u94fe\u8868\u7684\u5934\u8282\u70b9\uff0c\u4ece\u5c3e\u5230\u5934\u53cd\u8fc7\u6765\u8fd4\u56de\u6bcf\u4e2a\u8282\u70b9\u7684\u503c\uff08\u7528\u6570\u7ec4\u8fd4\u56de\uff09\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>head = [1,3,2]\n<strong>\u8f93\u51fa\uff1a</strong>[2,3,1]</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= \u94fe\u8868\u957f\u5ea6 <= 10000</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/cong-wei-dao-tou-da-yin-lian-biao-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9806.%20%E4%BB%8E%E5%B0%BE%E5%88%B0%E5%A4%B4%E6%89%93%E5%8D%B0%E9%93%BE%E8%A1%A8/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9806.%20%E4%BB%8E%E5%B0%BE%E5%88%B0%E5%A4%B4%E6%89%93%E5%8D%B0%E9%93%BE%E8%A1%A8/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100281, "frontend_id": "\u9762\u8bd5\u989813", "title": "\u673a\u5668\u4eba\u7684\u8fd0\u52a8\u8303\u56f4", "title_cn": "\u673a\u5668\u4eba\u7684\u8fd0\u52a8\u8303\u56f4", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5730\u4e0a\u6709\u4e00\u4e2am\u884cn\u5217\u7684\u65b9\u683c\uff0c\u4ece\u5750\u6807 <code>[0,0]</code> \u5230\u5750\u6807 <code>[m-1,n-1]</code> \u3002\u4e00\u4e2a\u673a\u5668\u4eba\u4ece\u5750\u6807 <code>[0, 0] </code>\u7684\u683c\u5b50\u5f00\u59cb\u79fb\u52a8\uff0c\u5b83\u6bcf\u6b21\u53ef\u4ee5\u5411\u5de6\u3001\u53f3\u3001\u4e0a\u3001\u4e0b\u79fb\u52a8\u4e00\u683c\uff08\u4e0d\u80fd\u79fb\u52a8\u5230\u65b9\u683c\u5916\uff09\uff0c\u4e5f\u4e0d\u80fd\u8fdb\u5165\u884c\u5750\u6807\u548c\u5217\u5750\u6807\u7684\u6570\u4f4d\u4e4b\u548c\u5927\u4e8ek\u7684\u683c\u5b50\u3002\u4f8b\u5982\uff0c\u5f53k\u4e3a18\u65f6\uff0c\u673a\u5668\u4eba\u80fd\u591f\u8fdb\u5165\u65b9\u683c [35, 37] \uff0c\u56e0\u4e3a3+5+3+7=18\u3002\u4f46\u5b83\u4e0d\u80fd\u8fdb\u5165\u65b9\u683c [35, 38]\uff0c\u56e0\u4e3a3+5+3+8=19\u3002\u8bf7\u95ee\u8be5\u673a\u5668\u4eba\u80fd\u591f\u5230\u8fbe\u591a\u5c11\u4e2a\u683c\u5b50\uff1f</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>m = 2, n = 3, k = 1\n<strong>\u8f93\u51fa\uff1a</strong>3\n</pre>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>m = 3, n = 1, k = 0\n<strong>\u8f93\u51fa\uff1a</strong>1\n</pre>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= n,m <= 100</code></li>\n\t<li><code>0 <= k <= 20</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/ji-qi-ren-de-yun-dong-fan-wei-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9813.%20%E6%9C%BA%E5%99%A8%E4%BA%BA%E7%9A%84%E8%BF%90%E5%8A%A8%E8%8C%83%E5%9B%B4/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9813.%20%E6%9C%BA%E5%99%A8%E4%BA%BA%E7%9A%84%E8%BF%90%E5%8A%A8%E8%8C%83%E5%9B%B4/README.md", "tags": [], "tags_cn": [], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100280, "frontend_id": "\u9762\u8bd5\u989805", "title": "\u66ff\u6362\u7a7a\u683c", "title_cn": "\u66ff\u6362\u7a7a\u683c", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>\r\n", "content_cn": "<p>\u8bf7\u5b9e\u73b0\u4e00\u4e2a\u51fd\u6570\uff0c\u628a\u5b57\u7b26\u4e32 <code>s</code> \u4e2d\u7684\u6bcf\u4e2a\u7a7a\u683c\u66ff\u6362\u6210"%20"\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>s = "We are happy."\n<strong>\u8f93\u51fa\uff1a</strong>"We%20are%20happy."</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= s \u7684\u957f\u5ea6 <= 10000</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/ti-huan-kong-ge-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9805.%20%E6%9B%BF%E6%8D%A2%E7%A9%BA%E6%A0%BC/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9805.%20%E6%9B%BF%E6%8D%A2%E7%A9%BA%E6%A0%BC/README.md", "tags": [], "tags_cn": [], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100279, "frontend_id": "\u9762\u8bd5\u989812", "title": "\u77e9\u9635\u4e2d\u7684\u8def\u5f84", "title_cn": "\u77e9\u9635\u4e2d\u7684\u8def\u5f84", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u8bf7\u8bbe\u8ba1\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u6765\u5224\u65ad\u5728\u4e00\u4e2a\u77e9\u9635\u4e2d\u662f\u5426\u5b58\u5728\u4e00\u6761\u5305\u542b\u67d0\u5b57\u7b26\u4e32\u6240\u6709\u5b57\u7b26\u7684\u8def\u5f84\u3002\u8def\u5f84\u53ef\u4ee5\u4ece\u77e9\u9635\u4e2d\u7684\u4efb\u610f\u4e00\u683c\u5f00\u59cb\uff0c\u6bcf\u4e00\u6b65\u53ef\u4ee5\u5728\u77e9\u9635\u4e2d\u5411\u5de6\u3001\u53f3\u3001\u4e0a\u3001\u4e0b\u79fb\u52a8\u4e00\u683c\u3002\u5982\u679c\u4e00\u6761\u8def\u5f84\u7ecf\u8fc7\u4e86\u77e9\u9635\u7684\u67d0\u4e00\u683c\uff0c\u90a3\u4e48\u8be5\u8def\u5f84\u4e0d\u80fd\u518d\u6b21\u8fdb\u5165\u8be5\u683c\u5b50\u3002\u4f8b\u5982\uff0c\u5728\u4e0b\u9762\u76843×4\u7684\u77e9\u9635\u4e2d\u5305\u542b\u4e00\u6761\u5b57\u7b26\u4e32“bfce”\u7684\u8def\u5f84\uff08\u8def\u5f84\u4e2d\u7684\u5b57\u6bcd\u7528\u52a0\u7c97\u6807\u51fa\uff09\u3002</p>\n\n<p>[["a","<strong>b</strong>","c","e"],<br>\n["s","<strong>f</strong>","<strong>c</strong>","s"],<br>\n["a","d","<strong>e</strong>","e"]]</p>\n\n<p>\u4f46\u77e9\u9635\u4e2d\u4e0d\u5305\u542b\u5b57\u7b26\u4e32“abfb”\u7684\u8def\u5f84\uff0c\u56e0\u4e3a\u5b57\u7b26\u4e32\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26b\u5360\u636e\u4e86\u77e9\u9635\u4e2d\u7684\u7b2c\u4e00\u884c\u7b2c\u4e8c\u4e2a\u683c\u5b50\u4e4b\u540e\uff0c\u8def\u5f84\u4e0d\u80fd\u518d\u6b21\u8fdb\u5165\u8fd9\u4e2a\u683c\u5b50\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCCED"\n<strong>\u8f93\u51fa\uff1a</strong>true\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>board = [["a","b"],["c","d"]], word = "abcd"\n<strong>\u8f93\u51fa\uff1a</strong>false\n</pre>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= board.length <= 200</code></li>\n\t<li><code>1 <= board[i].length <= 200</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 79 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/word-search/\">https://leetcode.cn/problems/word-search/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/ju-zhen-zhong-de-lu-jing-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9812.%20%E7%9F%A9%E9%98%B5%E4%B8%AD%E7%9A%84%E8%B7%AF%E5%BE%84/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9812.%20%E7%9F%A9%E9%98%B5%E4%B8%AD%E7%9A%84%E8%B7%AF%E5%BE%84/README.md", "tags": ["Dynamic Programming"], "tags_cn": ["\u52a8\u6001\u89c4\u5212"], "difficulty": "Medium", "difficulty_cn": "\u4e2d\u7b49", "category": "lcof"}, {"id": 100278, "frontend_id": "\u9762\u8bd5\u989811", "title": "\u65cb\u8f6c\u6570\u7ec4\u7684\u6700\u5c0f\u6570\u5b57", "title_cn": "\u65cb\u8f6c\u6570\u7ec4\u7684\u6700\u5c0f\u6570\u5b57", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u628a\u4e00\u4e2a\u6570\u7ec4\u6700\u5f00\u59cb\u7684\u82e5\u5e72\u4e2a\u5143\u7d20\u642c\u5230\u6570\u7ec4\u7684\u672b\u5c3e\uff0c\u6211\u4eec\u79f0\u4e4b\u4e3a\u6570\u7ec4\u7684\u65cb\u8f6c\u3002\u8f93\u5165\u4e00\u4e2a\u9012\u589e\u6392\u5e8f\u7684\u6570\u7ec4\u7684\u4e00\u4e2a\u65cb\u8f6c\uff0c\u8f93\u51fa\u65cb\u8f6c\u6570\u7ec4\u7684\u6700\u5c0f\u5143\u7d20\u3002\u4f8b\u5982\uff0c\u6570\u7ec4 <code>[3,4,5,1,2]</code> \u4e3a <code>[1,2,3,4,5]</code> \u7684\u4e00\u4e2a\u65cb\u8f6c\uff0c\u8be5\u6570\u7ec4\u7684\u6700\u5c0f\u503c\u4e3a1\u3002 </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>[3,4,5,1,2]\n<strong>\u8f93\u51fa\uff1a</strong>1\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>[2,2,2,0,1]\n<strong>\u8f93\u51fa\uff1a</strong>0\n</pre>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 154 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array-ii/\">https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array-ii/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9811.%20%E6%97%8B%E8%BD%AC%E6%95%B0%E7%BB%84%E7%9A%84%E6%9C%80%E5%B0%8F%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9811.%20%E6%97%8B%E8%BD%AC%E6%95%B0%E7%BB%84%E7%9A%84%E6%9C%80%E5%B0%8F%E6%95%B0%E5%AD%97/README.md", "tags": ["Binary Search"], "tags_cn": ["\u4e8c\u5206\u67e5\u627e"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100277, "frontend_id": "\u9762\u8bd5\u989810- II", "title": "\u9752\u86d9\u8df3\u53f0\u9636\u95ee\u9898", "title_cn": "\u9752\u86d9\u8df3\u53f0\u9636\u95ee\u9898", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u4e00\u53ea\u9752\u86d9\u4e00\u6b21\u53ef\u4ee5\u8df3\u4e0a1\u7ea7\u53f0\u9636\uff0c\u4e5f\u53ef\u4ee5\u8df3\u4e0a2\u7ea7\u53f0\u9636\u3002\u6c42\u8be5\u9752\u86d9\u8df3\u4e0a\u4e00\u4e2a <code>n</code> \u7ea7\u7684\u53f0\u9636\u603b\u5171\u6709\u591a\u5c11\u79cd\u8df3\u6cd5\u3002</p>\n\n<p>\u7b54\u6848\u9700\u8981\u53d6\u6a21 1e9+7\uff081000000007\uff09\uff0c\u5982\u8ba1\u7b97\u521d\u59cb\u7ed3\u679c\u4e3a\uff1a1000000008\uff0c\u8bf7\u8fd4\u56de 1\u3002</p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 2\n<strong>\u8f93\u51fa\uff1a</strong>2\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 7\n<strong>\u8f93\u51fa\uff1a</strong>21\n</pre>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>0 <= n <= 100</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 70 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/climbing-stairs/\">https://leetcode.cn/problems/climbing-stairs/</a></p>\n\n<p> </p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/qing-wa-tiao-tai-jie-wen-ti-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9810-%20II.%20%E9%9D%92%E8%9B%99%E8%B7%B3%E5%8F%B0%E9%98%B6%E9%97%AE%E9%A2%98/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9810-%20II.%20%E9%9D%92%E8%9B%99%E8%B7%B3%E5%8F%B0%E9%98%B6%E9%97%AE%E9%A2%98/README.md", "tags": ["Recursion"], "tags_cn": ["\u9012\u5f52"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100276, "frontend_id": "\u9762\u8bd5\u989804", "title": "\u4e8c\u7ef4\u6570\u7ec4\u4e2d\u7684\u67e5\u627e", "title_cn": "\u4e8c\u7ef4\u6570\u7ec4\u4e2d\u7684\u67e5\u627e", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u5728\u4e00\u4e2a n * m \u7684\u4e8c\u7ef4\u6570\u7ec4\u4e2d\uff0c\u6bcf\u4e00\u884c\u90fd\u6309\u7167\u4ece\u5de6\u5230\u53f3\u9012\u589e\u7684\u987a\u5e8f\u6392\u5e8f\uff0c\u6bcf\u4e00\u5217\u90fd\u6309\u7167\u4ece\u4e0a\u5230\u4e0b\u9012\u589e\u7684\u987a\u5e8f\u6392\u5e8f\u3002\u8bf7\u5b8c\u6210\u4e00\u4e2a\u51fd\u6570\uff0c\u8f93\u5165\u8fd9\u6837\u7684\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4\u548c\u4e00\u4e2a\u6574\u6570\uff0c\u5224\u65ad\u6570\u7ec4\u4e2d\u662f\u5426\u542b\u6709\u8be5\u6574\u6570\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b:</strong></p>\n\n<p>\u73b0\u6709\u77e9\u9635 matrix \u5982\u4e0b\uff1a</p>\n\n<pre>[\n [1, 4, 7, 11, 15],\n [2, 5, 8, 12, 19],\n [3, 6, 9, 16, 22],\n [10, 13, 14, 17, 24],\n [18, 21, 23, 26, 30]\n]\n</pre>\n\n<p>\u7ed9\u5b9a target = <code>5</code>\uff0c\u8fd4\u56de <code>true</code>\u3002</p>\n\n<p>\u7ed9\u5b9a target = <code>20</code>\uff0c\u8fd4\u56de <code>false</code>\u3002</p>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>0 <= n <= 1000</code></p>\n\n<p><code>0 <= m <= 1000</code></p>\n\n<p> </p>\n\n<p><strong>\u6ce8\u610f\uff1a</strong>\u672c\u9898\u4e0e\u4e3b\u7ad9 240 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/search-a-2d-matrix-ii/\">https://leetcode.cn/problems/search-a-2d-matrix-ii/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9804.%20%E4%BA%8C%E7%BB%B4%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E6%9F%A5%E6%89%BE/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9804.%20%E4%BA%8C%E7%BB%B4%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E6%9F%A5%E6%89%BE/README.md", "tags": ["Array", "Two Pointers"], "tags_cn": ["\u6570\u7ec4", "\u53cc\u6307\u9488"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100275, "frontend_id": "\u9762\u8bd5\u989803", "title": "\u6570\u7ec4\u4e2d\u91cd\u590d\u7684\u6570\u5b57", "title_cn": "\u6570\u7ec4\u4e2d\u91cd\u590d\u7684\u6570\u5b57", "content": "<p>English description is not available for the problem. Please switch to Chinese.</p>", "content_cn": "<p>\u627e\u51fa\u6570\u7ec4\u4e2d\u91cd\u590d\u7684\u6570\u5b57\u3002</p>\n\n<p><br>\n\u5728\u4e00\u4e2a\u957f\u5ea6\u4e3a n \u7684\u6570\u7ec4 nums \u91cc\u7684\u6240\u6709\u6570\u5b57\u90fd\u5728 0\uff5en-1 \u7684\u8303\u56f4\u5185\u3002\u6570\u7ec4\u4e2d\u67d0\u4e9b\u6570\u5b57\u662f\u91cd\u590d\u7684\uff0c\u4f46\u4e0d\u77e5\u9053\u6709\u51e0\u4e2a\u6570\u5b57\u91cd\u590d\u4e86\uff0c\u4e5f\u4e0d\u77e5\u9053\u6bcf\u4e2a\u6570\u5b57\u91cd\u590d\u4e86\u51e0\u6b21\u3002\u8bf7\u627e\u51fa\u6570\u7ec4\u4e2d\u4efb\u610f\u4e00\u4e2a\u91cd\u590d\u7684\u6570\u5b57\u3002</p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>\n[2, 3, 1, 0, 2, 5, 3]\n<strong>\u8f93\u51fa\uff1a</strong>2 \u6216 3 \n</pre>\n\n<p> </p>\n\n<p><strong>\u9650\u5236\uff1a</strong></p>\n\n<p><code>2 <= n <= 100000</code></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9803.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E9%87%8D%E5%A4%8D%E7%9A%84%E6%95%B0%E5%AD%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9803.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E9%87%8D%E5%A4%8D%E7%9A%84%E6%95%B0%E5%AD%97/README.md", "tags": ["Array", "Hash Table"], "tags_cn": ["\u6570\u7ec4", "\u54c8\u5e0c\u8868"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100274, "frontend_id": "\u9762\u8bd5\u989810- I", "title": "\u6590\u6ce2\u90a3\u5951\u6570\u5217", "title_cn": "\u6590\u6ce2\u90a3\u5951\u6570\u5217", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u8f93\u5165 <code>n</code> \uff0c\u6c42\u6590\u6ce2\u90a3\u5951\uff08Fibonacci\uff09\u6570\u5217\u7684\u7b2c <code>n</code> \u9879\u3002\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7684\u5b9a\u4e49\u5982\u4e0b\uff1a</p>\n\n<pre>F(0) = 0, F(1) = 1\nF(N) = F(N - 1) + F(N - 2), \u5176\u4e2d N > 1.</pre>\n\n<p>\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7531 0 \u548c 1 \u5f00\u59cb\uff0c\u4e4b\u540e\u7684\u6590\u6ce2\u90a3\u5951\u6570\u5c31\u662f\u7531\u4e4b\u524d\u7684\u4e24\u6570\u76f8\u52a0\u800c\u5f97\u51fa\u3002</p>\n\n<p>\u7b54\u6848\u9700\u8981\u53d6\u6a21 1e9+7\uff081000000007\uff09\uff0c\u5982\u8ba1\u7b97\u521d\u59cb\u7ed3\u679c\u4e3a\uff1a1000000008\uff0c\u8bf7\u8fd4\u56de 1\u3002</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 2\n<strong>\u8f93\u51fa\uff1a</strong>1\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>n = 5\n<strong>\u8f93\u51fa\uff1a</strong>5\n</pre>\n\n<p> </p>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>0 <= n <= 100</code></li>\n</ul>\n\n<p>\u6ce8\u610f\uff1a\u672c\u9898\u4e0e\u4e3b\u7ad9 509 \u9898\u76f8\u540c\uff1a<a href=\"https://leetcode.cn/problems/fibonacci-number/\">https://leetcode.cn/problems/fibonacci-number/</a></p>\n", "url": "", "url_cn": "https://leetcode.cn/problems/fei-bo-na-qi-shu-lie-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9810-%20I.%20%E6%96%90%E6%B3%A2%E9%82%A3%E5%A5%91%E6%95%B0%E5%88%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9810-%20I.%20%E6%96%90%E6%B3%A2%E9%82%A3%E5%A5%91%E6%95%B0%E5%88%97/README.md", "tags": ["Recursion"], "tags_cn": ["\u9012\u5f52"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}, {"id": 100273, "frontend_id": "\u9762\u8bd5\u989809", "title": "\u7528\u4e24\u4e2a\u6808\u5b9e\u73b0\u961f\u5217", "title_cn": "\u7528\u4e24\u4e2a\u6808\u5b9e\u73b0\u961f\u5217", "content": "English description is not available for the problem. Please switch to Chinese.", "content_cn": "<p>\u7528\u4e24\u4e2a\u6808\u5b9e\u73b0\u4e00\u4e2a\u961f\u5217\u3002\u961f\u5217\u7684\u58f0\u660e\u5982\u4e0b\uff0c\u8bf7\u5b9e\u73b0\u5b83\u7684\u4e24\u4e2a\u51fd\u6570 <code>appendTail</code> \u548c <code>deleteHead</code> \uff0c\u5206\u522b\u5b8c\u6210\u5728\u961f\u5217\u5c3e\u90e8\u63d2\u5165\u6574\u6570\u548c\u5728\u961f\u5217\u5934\u90e8\u5220\u9664\u6574\u6570\u7684\u529f\u80fd\u3002(\u82e5\u961f\u5217\u4e2d\u6ca1\u6709\u5143\u7d20\uff0c<code>deleteHead</code> \u64cd\u4f5c\u8fd4\u56de -1 )</p>\n\n<p> </p>\n\n<p><strong>\u793a\u4f8b 1\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>\n["CQueue","appendTail","deleteHead","deleteHead"]\n[[],[3],[],[]]\n<strong>\u8f93\u51fa\uff1a</strong>[null,null,3,-1]\n</pre>\n\n<p><strong>\u793a\u4f8b 2\uff1a</strong></p>\n\n<pre><strong>\u8f93\u5165\uff1a</strong>\n["CQueue","deleteHead","appendTail","appendTail","deleteHead","deleteHead"]\n[[],[],[5],[2],[],[]]\n<strong>\u8f93\u51fa\uff1a</strong>[null,-1,null,null,5,2]\n</pre>\n\n<p><strong>\u63d0\u793a\uff1a</strong></p>\n\n<ul>\n\t<li><code>1 <= values <= 10000</code></li>\n\t<li><code>\u6700\u591a\u4f1a\u5bf9 appendTail\u3001deleteHead \u8fdb\u884c 10000 \u6b21\u8c03\u7528</code></li>\n</ul>\n", "url": "", "url_cn": "https://leetcode.cn/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof", "path": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9809.%20%E7%94%A8%E4%B8%A4%E4%B8%AA%E6%A0%88%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97/README_EN.md", "path_cn": "/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9809.%20%E7%94%A8%E4%B8%A4%E4%B8%AA%E6%A0%88%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97/README.md", "tags": ["Stack", "Design"], "tags_cn": ["\u6808", "\u8bbe\u8ba1"], "difficulty": "Easy", "difficulty_cn": "\u7b80\u5355", "category": "lcof"}]