摘要: 题目: Implement pow(x, n). Example 1: Example 2: 题意及分析:实现求x的n次方,使用分治法,复杂度降低到log2n 代码: 阅读全文
posted @ 2018-01-23 12:40 荒野第一快递员 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your m 阅读全文
posted @ 2018-01-23 09:41 荒野第一快递员 阅读(156) 评论(0) 推荐(0) 编辑