mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 21:46:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个由表示变量之间关系的字符串方程组成的数组,每个字符串方程 <code>equations[i]</code> 的长度为 <code>4</code>,并采用两种不同的形式之一:<code>"a==b"</code> 或 <code>"a!=b"</code>。在这里,a 和 b 是小写字母(不一定不同),表示单字母变量名。</p>\n\n<p>只有当可以将整数分配给变量名,以便满足所有给定的方程时才返回 <code>true</code>,否则返回 <code>false</code>。 </p>\n\n<p> </p>\n\n<ol>\n</ol>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong>["a==b","b!=a"]\n<strong>输出:</strong>false\n<strong>解释:</strong>如果我们指定,a = 1 且 b = 1,那么可以满足第一个方程,但无法满足第二个方程。没有办法分配变量同时满足这两个方程。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong>["b==a","a==b"]\n<strong>输出:</strong>true\n<strong>解释:</strong>我们可以指定 a = 1 且 b = 1 以满足满足这两个方程。\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong>["a==b","b==c","a==c"]\n<strong>输出:</strong>true\n</pre>\n\n<p><strong>示例 4:</strong></p>\n\n<pre><strong>输入:</strong>["a==b","b!=c","c==a"]\n<strong>输出:</strong>false\n</pre>\n\n<p><strong>示例 5:</strong></p>\n\n<pre><strong>输入:</strong>["c==c","b==d","x!=z"]\n<strong>输出:</strong>true\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ol>\n\t<li><code>1 <= equations.length <= 500</code></li>\n\t<li><code>equations[i].length == 4</code></li>\n\t<li><code>equations[i][0]</code> 和 <code>equations[i][3]</code> 是小写字母</li>\n\t<li><code>equations[i][1]</code> 要么是 <code>'='</code>,要么是 <code>'!'</code></li>\n\t<li><code>equations[i][2]</code> 是 <code>'='</code></li>\n</ol>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 224,
|
||||
"likes": 225,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"39K\", \"totalSubmission\": \"75.8K\", \"totalAcceptedRaw\": 38983, \"totalSubmissionRaw\": 75836, \"acRate\": \"51.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"39.1K\", \"totalSubmission\": \"76K\", \"totalAcceptedRaw\": 39088, \"totalSubmissionRaw\": 76005, \"acRate\": \"51.4%\"}",
|
||||
"hints": [],
|
||||
"solution": {
|
||||
"id": "138",
|
||||
|
Reference in New Issue
Block a user