1.

The time complexity of the following C function is (assume n > 0):int recursive (int n) {if (n==1)return (1); elsereturn (recursive (n—1) + recursive (n—1)):}

A. O(n)
B. O(n log n)
C. O(n2)
D. O(2n)
Answer» E.


Discussion

No Comment Found