277 views
0 votes
0 votes

Is it really coping operation will take O(n).

Does copy is done character by character.

means simple code like (in c++)

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

{

s=s;

}

will take O($n^{2}$)

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
Overflow04 asked Oct 9, 2022
409 views
how O($n^{2}$) in the last.(in the given solution).
3 votes
3 votes
1 answer
2
1 votes
1 votes
1 answer
3
1 votes
1 votes
0 answers
4