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>给你一个非负整数 <code>x</code> ,计算并返回 <code>x</code> 的 <strong>算术平方根</strong> 。</p>\n\n<p>由于返回类型是整数,结果只保留 <strong>整数部分 </strong>,小数部分将被 <strong>舍去 。</strong></p>\n\n<p><strong>注意:</strong>不允许使用任何内置指数函数和算符,例如 <code>pow(x, 0.5)</code> 或者 <code>x ** 0.5</code> 。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>x = 4\n<strong>输出:</strong>2\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>x = 8\n<strong>输出:</strong>2\n<strong>解释:</strong>8 的算术平方根是 2.82842..., 由于返回类型是整数,小数部分将被舍去。\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>0 <= x <= 2<sup>31</sup> - 1</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 1486,
|
||||
"likes": 1487,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Pow(x, n)\", \"titleSlug\": \"powx-n\", \"difficulty\": \"Medium\", \"translatedTitle\": \"Pow(x, n)\", \"isPaidOnly\": false}, {\"title\": \"Valid Perfect Square\", \"titleSlug\": \"valid-perfect-square\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u6709\\u6548\\u7684\\u5b8c\\u5168\\u5e73\\u65b9\\u6570\", \"isPaidOnly\": false}]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"824.1K\", \"totalSubmission\": \"2.1M\", \"totalAcceptedRaw\": 824089, \"totalSubmissionRaw\": 2143375, \"acRate\": \"38.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"824.2K\", \"totalSubmission\": \"2.1M\", \"totalAcceptedRaw\": 824210, \"totalSubmissionRaw\": 2143672, \"acRate\": \"38.4%\"}",
|
||||
"hints": [
|
||||
"Try exploring all integers. (Credits: @annujoshi)",
|
||||
"Use the sorted property of integers to reduced the search space. (Credits: @annujoshi)"
|
||||
|
Reference in New Issue
Block a user