Ad
  • Custom User Avatar

    My C code runs with a time complexity of O(s1.length() + s2.length()) for its worst case and O(s2.length() * 2) in the best case but i still get a timeout. What might be cause for this (I have one for loop iterating over the first string and one itereating over the second string they are not nested. Possible memory leaks have been fixed)