ExamVeda
Login
Home
Miscellaneous on Data Structures
?

What will be the recurrence relation of the following code?
Int sum(int n)
{
   If(n==1)
       return 1;
   else
       return n+sum(n-1);
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.