69.Sqrt(x):修订历史

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2024年2月29日 (星期四)

  • 当前之前 14:022024年2月29日 (四) 14:02Riguz 讨论 贡献 1,195字节 +1,195 创建页面,内容为“=Description= {{LeetCode |id=sqrtx |no=69 |difficulty=Easy |category=Math |collection=Top 150 |title=Sqrt(x) |summary=Given a non-negative integer x, return the square root of x rounded down to the nearest integer. The returned integer should be non-negative as well.}} You must not use any built-in exponent function or operator. For example, do not use pow(x, 0.5) in c++ or x ** 0.5 in python. Example 1: <syntaxhighlight lang="bash"> Input: x = 4 Output:…”