Ad
  • Custom User Avatar

    The substring contains the prefix, and you have to sort them in ascending lexicographic order, what's what you think it's missing there?

  • Custom User Avatar

    In the result, substrings (a substring is for example 2:nnnnn or 1:hhh; it contains the prefix)

    It's already there and next time, mark your post as having spoiler content.