Please read the new rule regarding the restriction on the use of AI tools. ×

String swap complexity???

Revision en1, by an1k_, 2021-04-24 17:03:27

string s1,s2,ss;

s1="abc"; s2="def"

ss=s1; s1=s2; s2=s1;

what is the complexity for this swaping ?? I got TLE for this in a problem in a contest of atcoder.Anyone please help me with this...

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English an1k_ 2021-04-24 17:03:27 227 Initial revision (published)