Power Function

Recursion & Backtracking ยท easy

Implement `power(x, n)` returning `x` raised to the non-negative integer `n`, using fast exponentiation.

Learning resources

Loading...

Run your code to see results.