← 返回 nvidia 的题目列表Efficient Power Function for Floating-Point Exponents
类型:online_judge
nvidia
Implement a function pow(x, n) to compute x raised to the power of n, where both x and n are floating-point numbers. The solution should aim for the lowest possible time complexity, assuming all inputs are within the range.
Example
Input
2.0 10