You are viewing a single comment's thread. Return to all comments →
Hi @bolean, in java/scala, the complexity of s1.concat(s2) or s1 + s2 is O(M + N) where M and N are the respective String lengths, instead of O(1).
s1.concat(s2)
s1 + s2
Seems like cookies are disabled on this browser, please enable them to open this website
String Mingling
You are viewing a single comment's thread. Return to all comments →
Hi @bolean, in java/scala, the complexity of
s1.concat(s2)
ors1 + s2
is O(M + N) where M and N are the respective String lengths, instead of O(1).