Find complexity of the code.

int f(int n) {

  if(!n) return 1;

  return n*f(n-1);

}

 

Author: Amit Khandelwal 1
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer