Re: “Given two strings, write a function to find the length of their shortest common superstring. A superstring is a string that has both input strings as substrings”,
since in the example output, abdcf, s1 is not a substring of it, my question is around language. Doesn’t “substring” (in your definition of superstring) imply contiguity - which is not part of the requirement based upon the example output?
Course: https://www.educative.io/collection/10370001/5347133077061632
Lesson: https://www.educative.io/collection/page/10370001/5347133077061632/5796938106535936