mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>求解一个给定的方程,将<code>x</code>以字符串 <code>\"x=#value\"</code> 的形式返回。该方程仅包含 <code>'+'</code> , <code>'-'</code> 操作,变量 <code>x</code> 和其对应系数。</p>\n\n<p>如果方程没有解,请返回 <code>\"No solution\"</code> 。如果方程有无限解,则返回 <code>“Infinite solutions”</code> 。</p>\n\n<p>如果方程中只有一个解,要保证返回值 <font color=\"#c7254e\"><font face=\"Menlo, Monaco, Consolas, Courier New, monospace\"><span style=\"font-size:12.6px\"><span style=\"background-color:#f9f2f4\">'x'</span></span></font></font> 是一个整数。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong> equation = \"x+5-3+x=6+x-2\"\n<strong>输出:</strong> \"x=2\"\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong> equation = \"x=x\"\n<strong>输出:</strong> \"Infinite solutions\"\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong> equation = \"2x=x\"\n<strong>输出:</strong> \"x=0\"\n</pre>\n\n<p> </p>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>3 <= equation.length <= 1000</code></li>\n\t<li><code>equation</code> 只有一个 <code>'='</code>.</li>\n\t<li><code>equation</code> 方程由整数组成,其绝对值在 <code>[0, 100]</code> 范围内,不含前导零和变量 <code>'x'</code> 。 <span style=\"display:block\"><span style=\"height:0px\"><span style=\"position:absolute\"></span></span></span></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 84,
|
||||
"likes": 87,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Fraction Addition and Subtraction\", \"titleSlug\": \"fraction-addition-and-subtraction\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u5206\\u6570\\u52a0\\u51cf\\u8fd0\\u7b97\"}]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"12K\", \"totalSubmission\": \"28.2K\", \"totalAcceptedRaw\": 12031, \"totalSubmissionRaw\": 28207, \"acRate\": \"42.7%\"}",
|
||||
"stats": "{\"totalAccepted\": \"12.3K\", \"totalSubmission\": \"28.8K\", \"totalAcceptedRaw\": 12264, \"totalSubmissionRaw\": 28848, \"acRate\": \"42.5%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user