The answer is true they will have to be responsible
Answer:
O(n) which is a linear space complexity
Explanation:
Space complexity is the amount of memory space needed for a program code to be executed and return results. Space complexity depends on the input space and the auxiliary space used by the algorithm.
The list or array is an integer array of 'n' items, with the memory size 4*n, which is the memory size of an integer multiplied by the number of items in the list. The listSize, i, and arithmeticSum are all integers, the memory space is 4(3) = 12. The return statement passes the content of the arithmetic variable to another variable of space 4.
The total space complexity of the algorithm is "4n + 16" which is a linear space complexity.
The only thing that I know is that after you input the text file, it could either:
-save those lines as a variable
-display the text file
However any more would be dependent on the language.
Answer:
#include<iostream>
#include<iomanip>
using namespacestd;
int main ()
{
int x1[3][3]={1,2,3,4,5,6,7,8,9};
int x2[3][3];
int i,j;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
x2[i][j] = x1[i][j];
cout<<"copy from x1 to x2 , x2 is :";
for(i=0;i<3;i++)
for(j=0;j<3;j++)
cout<<x2[i][j]<<" ";
cout<<endl;
system("pause");
return 0;
}
/* Sample output
copy from x1 to x2 , x2 is :1 2 3 4 5 6 7 8 9
Press any key to continue . . .
*/
Explanation:
Answer:
Bueno, realmente no entendí lo que dijiste, pero, ¿podrías decirlo donde puedo ayudarte?