摘要: Implement int sqrt(int x).Compute and return the square root of x.线性查找会TLE。用二分查找。注意溢出的处理。全部都改成long long. 1 class Solution { 2 public: 3 int sqrt(i... 阅读全文
posted @ 2014-07-26 23:06 linyx 阅读(126) 评论(0) 推荐(0) 编辑