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...
String swap complexity???
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...