You are viewing a single comment's thread. Return to all comments →
That's a very nice solution and yes indeed, yours has time complexity equals to the length of the longer of the strings.
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
That's a very nice solution and yes indeed, yours has time complexity equals to the length of the longer of the strings.