Pow(x, n)
Implement pow(x, n), 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]
Last updated
Implement pow(x, n), 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]
Last updated