摘要: 1. 原题链接 https://leetcode.com/problems/powx-n/description/ 2. 题目要求 给出一个double类型的 x 作为底数,int类型的 n 作为指数,求幂 3. 解题思路 这题看上去很简单,用一个for循环将底数 x 连乘 n次即可。但是要注意以下 阅读全文
posted @ 2018-01-18 16:38 一只敲码的猫 阅读(172) 评论(0) 推荐(0)