Leetcode69-Sqrt(x)(Python3)

69. Sqrt(x)

Implementint sqrt(int x).

Compute and return the square root ofx.


My Solution



Leetcode69-Sqrt(x)(Python3)_第1张图片


参考答案(转)



Leetcode69-Sqrt(x)(Python3)_第2张图片

注: sqrt(x) <= (x+1) / 2

你可能感兴趣的:(Leetcode69-Sqrt(x)(Python3))