1.

Consider the following code: Which of the following lines is the recurrence relation for the above code?

A. (n – 1) +recursive_sum(n)
B. n + recursive_sum(n)
C. n + recursive_sum(n – 1)
D. (n – 1) + recursive_sum(n – 1)View Answer
Answer» D. (n – 1) + recursive_sum(n – 1)View Answer


Discussion

No Comment Found