in Programming in C retagged by
478 views
0 votes
0 votes
int sum(int A[], int n)

{

            int sum = 0, i;

            for(i = 0; i< n; i++)

            sum = sum + A[i];

            return sum;

}

What is the space complexity?


Select one:
a. 2n + 8
b. 2n + 16
c. n^2
d. n + 8

What is the space complexity?

in Programming in C retagged by
478 views

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
4
Dknights asked in Algorithms Jan 2
159 views
Dknights asked in Algorithms Jan 2
159 views