mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-24 14:28:56 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个链表的 <strong>头节点 </strong><code>head</code><strong> ,</strong>请判断其是否为回文链表。</p>\n\n<p>如果一个链表是回文,那么链表节点序列从前往后看和从后往前看是相同的。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<p><strong><img alt=\"\" src=\"https://pic.leetcode-cn.com/1626421737-LjXceN-image.png\" /></strong></p>\n\n<pre>\n<strong>输入:</strong> head = [1,2,3,3,2,1]\n<strong>输出:</strong> true</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<p><strong><img alt=\"\" src=\"https://pic.leetcode-cn.com/1626422231-wgvnWh-image.png\" style=\"width: 138px; height: 62px;\" /></strong></p>\n\n<pre>\n<strong>输入:</strong> head = [1,2]\n<strong>输出:</strong> false\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li>链表 L 的长度范围为 <code>[1, 10<sup><span style=\"font-size: 9.449999809265137px;\">5</span></sup>]</code></li>\n\t<li><code>0 <= node.val <= 9</code></li>\n</ul>\n\n<p> </p>\n\n<p><strong>进阶:</strong>能否用 O(n) 时间复杂度和 O(1) 空间复杂度解决此题?</p>\n\n<p> </p>\n\n<p><meta charset=\"UTF-8\" />注意:本题与主站 234 题相同:<a href=\"https://leetcode-cn.com/problems/palindrome-linked-list/\">https://leetcode-cn.com/problems/palindrome-linked-list/</a></p>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 40,
|
||||
"likes": 52,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -162,7 +162,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"23.4K\", \"totalSubmission\": \"37.9K\", \"totalAcceptedRaw\": 23363, \"totalSubmissionRaw\": 37904, \"acRate\": \"61.6%\"}",
|
||||
"stats": "{\"totalAccepted\": \"27.1K\", \"totalSubmission\": \"43.9K\", \"totalAcceptedRaw\": 27052, \"totalSubmissionRaw\": 43943, \"acRate\": \"61.6%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
||||
Reference in New Issue
Block a user