1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-21 21:16:45 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 16:56:27 +08:00
parent e730aa6794
commit ad15da05aa
2517 changed files with 7358 additions and 7332 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>编写代码,移除未排序链表中的重复节点。保留最开始出现的节点。</p>\n\n<p> <strong>示例1:</strong></p>\n\n<pre>\n<strong> 输入</strong>[1, 2, 3, 3, 2, 1]\n<strong> 输出</strong>[1, 2, 3]\n</pre>\n\n<p> <strong>示例2:</strong></p>\n\n<pre>\n<strong> 输入</strong>[1, 1, 1, 1, 2]\n<strong> 输出</strong>[1, 2]\n</pre>\n\n<p><strong>提示:</strong></p>\n\n<ol>\n<li>链表长度在[0, 20000]范围内。</li>\n<li>链表元素在[0, 20000]范围内。</li>\n</ol>\n\n<p> <strong>进阶:</strong></p>\n\n<p>如果不得使用临时缓冲区,该怎么解决?</p>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 146,
"likes": 147,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"73.6K\", \"totalSubmission\": \"109K\", \"totalAcceptedRaw\": 73569, \"totalSubmissionRaw\": 109036, \"acRate\": \"67.5%\"}",
"stats": "{\"totalAccepted\": \"73.7K\", \"totalSubmission\": \"109.3K\", \"totalAcceptedRaw\": 73706, \"totalSubmissionRaw\": 109283, \"acRate\": \"67.4%\"}",
"hints": [
"你有没有试过一个散列表?你应该可以通过一次链表遍历做到这一点。",
"没有额外的空间你需要O(N2)的时间。尝试使用两个指针,其中第二个指针在第一个指针之前搜索。"