mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 00:11:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个包含正整数、加(+)、减(-)、乘(*)、除(/)的算数表达式(括号除外),计算其结果。</p>\n\n<p>表达式仅包含非负整数,<code>+</code>, <code>-</code> ,<code>*</code>,<code>/</code> 四种运算符和空格 <code> </code>。 整数除法仅保留整数部分。</p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入: </strong>"3+2*2"\n<strong>输出:</strong> 7\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong> " 3/2 "\n<strong>输出:</strong> 1</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong> " 3+5 / 2 "\n<strong>输出:</strong> 5\n</pre>\n\n<p><strong>说明:</strong></p>\n\n<ul>\n\t<li>你可以假设所给定的表达式都是有效的。</li>\n\t<li>请<strong>不要</strong>使用内置的库函数 <code>eval</code>。</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 66,
|
||||
"likes": 67,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"17.6K\", \"totalSubmission\": \"44.9K\", \"totalAcceptedRaw\": 17598, \"totalSubmissionRaw\": 44856, \"acRate\": \"39.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"17.6K\", \"totalSubmission\": \"45K\", \"totalAcceptedRaw\": 17637, \"totalSubmissionRaw\": 44991, \"acRate\": \"39.2%\"}",
|
||||
"hints": [
|
||||
"我们可以从左到右处理表达式吗?为什么会失败?",
|
||||
"乘法和除法是优先级较高的运算。在3*4 + 5*9/2 + 3这样的表达式中,乘法和除法部分需要组合在一起。",
|
||||
|
Reference in New Issue
Block a user