Time complexity of concatenation of 2 strings in c++

Revision en2, by muffins, 2019-09-03 14:21:13

string a = "............"`` string b = "............" a+=b Whats the time complexity of that ^^ is that O(1)? or linear? Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English muffins 2019-09-03 14:21:35 6
en2 English muffins 2019-09-03 14:21:13 2 Tiny change: '........."\nstring b' -> '........."``\nstring b'
en1 English muffins 2019-09-03 14:20:24 182 Initial revision (published)