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

    But it nowhere states that it should be sorted by that prefix. It says to sort by count and character - nothing more.
    So the issue remains and is still not solved.

  • 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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution