1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>求解一个给定的方程,将<code>x</code>以字符串 <code>\"x=#value\"</code>&nbsp;的形式返回。该方程仅包含 <code>'+'</code> <code>'-'</code> 操作,变量&nbsp;<code>x</code>&nbsp;和其对应系数。</p>\n\n<p>如果方程没有解,请返回&nbsp;<code>\"No solution\"</code>&nbsp;。如果方程有无限解,则返回 <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>&nbsp;是一个整数。</p>\n\n<p>&nbsp;</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>&nbsp;</p>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>3 &lt;= equation.length &lt;= 1000</code></li>\n\t<li><code>equation</code>&nbsp;只有一个&nbsp;<code>'='</code>.</li>\n\t<li><code>equation</code>&nbsp;方程由整数组成,其绝对值在&nbsp;<code>[0, 100]</code>&nbsp;范围内,不含前导零和变量 <code>'x'</code> 。&nbsp;<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,