摘要: class Solution {public: int sqrt(int x) { // Start typing your C/C++ solution below // DO NOT write int main() function if(x = 1 && x 0.000001){ start = next; next = 0.5 *(start + x/start); } return int(start); }};两种方法的详细分析: http://www.cnblogs.com/Anni... 阅读全文
posted @ 2013-09-18 23:36 冰点猎手 阅读(129) 评论(0) 推荐(0)