Implement pow(x, n). [java] view plain copy public class Solution { public double myPow(double x, int n) { return Math.pow(x, n); } } 原文链接http://blog.csdn.net/crazy__chen/article/details/46389445