
题目描述
Implement int sqrt(int x).
Compute and return the square root of x.
代码
使用二分搜索,方法简单写对也不容易啊:)
1 |
public class Solution{ |
另一种写法
1 |
public class Solution{ |

Implement int sqrt(int x).
Compute and return the square root of x.
使用二分搜索,方法简单写对也不容易啊:)
1 |
public class Solution{ |
另一种写法
1 |
public class Solution{ |
近期评论