Ad
  • Default User Avatar
  • Custom User Avatar

    All of the preceding and succeeding letters need to match in the subsequences.

    In your first example, you're matching at the 'o' in "hello" and "world", but before the 'o' in "hello" is 'l' and not 'w'.

    Same for the other input. All of the preceding and succeeding letters should match, so that answer should be "abcdejdek" since you can't match the 'k' with "cdejd".