2018.12.11——第十三天

题目 第一次实现想的很简单,找两个相邻的数,一个的平方小于x,另一个大于x,就选小的那个就符合了 class Solution { public int mySqrt(int x) { if(x==0) return 0; int i=1; int r=2; while(true){
相关文章
相关标签/搜索