Implement a method to calculate the power of a number using recursion.
MediumProblem Statement
Implement a method to calculate the power of a number using recursion.
Sample Input
Base: 2, Exponent: 3
Sample Output
8
Limits
Time: 2s · Memory: 256 MB
Implement a method to calculate the power of a number using recursion.
Base: 2, Exponent: 3
8
Time: 2s · Memory: 256 MB