[LeetCode] 50. Pow(x, n)
Last updated
Last updated
Implement , which calculates x raised to the power n (xn).
Example 1:
Example 2:
Example 3:
Note:
-100.0 < x < 100.0
n is a 32-bit signed integer, within the range [−231, 231 − 1]
Analyse:
Solution: