Skip to main content

All Questions

2 votes
4 answers
16k views

Finding the time complexity of the following program that uses recursion

I need to find the time complexity in terms of Big Oh notation for the following program which computes the factorial of a given number: The program goes like this: public int fact(int n){ if (n &...
Pradeep's user avatar
  • 313