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

an1k_'s blog

By an1k_, history, 3 years ago, In English

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...

Full text and comments »

  • Vote: I like it
  • -18
  • Vote: I do not like it