mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-24 22:38:57 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定两个字符串 <code>s1</code> 和 <code>s2</code>,请编写一个程序,确定其中一个字符串的字符重新排列后,能否变成另一个字符串。</p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong> <code>s1</code> = "abc", <code>s2</code> = "bca"\n<strong>输出:</strong> true \n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong> <code>s1</code> = "abc", <code>s2</code> = "bad"\n<strong>输出:</strong> false\n</pre>\n\n<p><strong>说明:</strong></p>\n\n<ul>\n\t<li><code>0 <= len(s1) <= 100 </code></li>\n\t<li><code>0 <= len(s2) <= 100 </code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 65,
|
||||
"likes": 67,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"73.2K\", \"totalSubmission\": \"114.8K\", \"totalAcceptedRaw\": 73165, \"totalSubmissionRaw\": 114789, \"acRate\": \"63.7%\"}",
|
||||
"stats": "{\"totalAccepted\": \"75.3K\", \"totalSubmission\": \"118.1K\", \"totalAcceptedRaw\": 75258, \"totalSubmissionRaw\": 118082, \"acRate\": \"63.7%\"}",
|
||||
"hints": [
|
||||
"描述两个字符串是否互为字符重排的含义。现在,看看你提供的定义,你能否根据这个定义检查字符串",
|
||||
"有一种解法需要O(NlogN)的时间。另一种解法需要使用一些空间,但需要运行时间为O(N)",
|
||||
|
||||
Reference in New Issue
Block a user