I need to know how to calculate the complexity of this algorithm using the recurrence equation.
public int qdr(int x, int n) {
if(n == 0)
return 1;
else
return x * qdr(x, n-1);
}
It is a recursive algorithm that reads two numbers x and n and returns the result of x ^ n