摘要: 前言 【LeetCode 题解】系列传送门: http://www.cnblogs.com/double-win/category/573499.html 1.题目描述 Implement pow(x, n). 2. 思路 题目很精简,不过需要考虑的情况很多,特别的需要注意 n可能为0 或者负数的情况。 另外,通过二分法,可以减少计算量。 3. 解法 clas... 阅读全文
posted @ 2014-05-04 16:59 Double_win 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 前言 【LeetCode 题解】系列传送门: http://www.cnblogs.com/double-win/category/573499.html 1.题目描述 Given a non-negative number represented as an array of digits, plus one to the number. The digits ar... 阅读全文
posted @ 2014-05-04 11:39 Double_win 阅读(242) 评论(0) 推荐(0) 编辑