摘要: Description: Implement pow(x, n). Example 1: Example 2: 解法二: 一开始用迭代法实现,一直超时,我真的要疯了- -,优化了很久。 INT_MAX = 2147483647而INT_MIN = -2147483648。所以,x的INT_MIN次幂 阅读全文
posted @ 2017-12-05 20:10 SYSU_Bango 阅读(156) 评论(0) 推荐(0)
摘要: Description: Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. Example 1: Example 2: 解 阅读全文
posted @ 2017-12-05 19:36 SYSU_Bango 阅读(246) 评论(0) 推荐(0)