Skip to main content
Pow(x, n) | AlgoCracked
AlgoCracked
ProblemsPow(x, n)
Medium34.0% acceptance
MathRecursionDivide And Conquer

Pow(x, n)

Implement myPow(x, n) that raises the floating-point number x to the integer power n . The exponent n may be negative. Return the resulting value as a floating-point number. Input format Input is [x, n] , e.g. [2.0,10] .

Loading workspace…