摘要: Implement int sqrt(int x).Compute and return the square root of x.二分搜索法class Solution {public: int sqrt(int x) { // Start typing your C/C++ solution below // DO NOT write int main() function if(xx){ end=mid-1; } else{ if(a+m... 阅读全文
posted @ 2013-09-12 21:01 懒猫欣 阅读(147) 评论(0) 推荐(0)