Ad
  • Default User Avatar

    Issue with problem statement

    There are inconsistencies between the problem description and the test cases.

    1. The problem statement says, "The letters should be compared case-insensitive," but the tests only pass if the sorting is case-sensitive.

    2. The the following sentence in the problem statement is redundant: "If both letters are the same, order them normally (lexicographically), again, case-insensitive". Lexicographical ordering already handles ties without needing a separate case-insensitivity clause.

    Please clarify whether the sorting should be case-sensitive or case-insensitive.

  • Default User Avatar

    JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
    Refer to this and this

  • Default User Avatar

    Description should mention how to deal with multiple words separated by spaces.

  • Custom User Avatar

    Trivial comparison/sum of list values is not a novel idea.

  • Custom User Avatar

    "Predefined tests in a random order" is not good enough. Actual random tests need to be created.

  • Custom User Avatar

    The letters should be compared case-insensitive. If both letters are the same, order them normally (lexicographically), again, case-insensitive.

    First part doesn't hold for ruby where case does matter, second also doesn't because ties are broken by position in original array.

  • Custom User Avatar

    (Python) I can't understand the logic when sorting "multiple words" words. First problem is that description says nothing about what is actually considerated a word here... I guess words are things separated by commas... So why :

    "Ernst von Eisenach, Oskar von Reuenthal, Anton Ferner, Ernst von Eisenach, Hildegard von Mariendorf, Karl Gustav Kempf, Adalbert von Fahrenheit, Karl Robert Steinmetz, August Samuel Wahlen, Theodor von Lucke, Siegfried Kircheis, Ulrich Kesler, Helmut Rennenkampf, Emil von Secla, Arthur von Streit, Paul von Oberstein, Reinhard von Lohengramm, Wolfgang Mittermeyer"

    should be sorted as

    "'Ernst von Eisenach, Oskar von Reuenthal, Ernst von Eisenach, Hildegard von Mariendorf, Siegfried Kircheis, Wolfgang Mittermeyer, Paul von Oberstein, Emil von Secla, Karl Gustav Kempf, August Samuel Wahlen, Anton Ferner, Helmut Rennenkampf, Arthur von Streit, Theodor von Lucke, Karl Robert Steinmetz, Ulrich Kesler, Adalbert von Fahrenheit, Reinhard von Lohengramm"

    with n = 10?

    10th letter of first three "sorted" "words" are 'i', 'e' and 'i' respectively. How could that be sorted? Unless it's actually meant not 10th letter but 10th character (in that case please call things by their names). If it is so in those three words the 10th character is a space (how should we sort between letters and spaces?), the description says " If both letters are the same, order them normally (lexicographically)". How would "Ernst..., Oskar..., Ernst..." be sorted alphabetically?

  • Default User Avatar

    Lack of sample tests in Python

  • Custom User Avatar

    Sample tests covering the "if teams are equal compare their anchors" rule should be added to all languages.

  • Custom User Avatar

    No random tests in Python, Ruby, Java and C#.