Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Resolving question.

  • Custom User Avatar

    I'll give you a full example:

    Word    Position
    AAAB    1
    AABA    2
    ABAA    3
    BAAA    4
    

    You can't use any number, the number you have to return is the position that particular word is when sorted alphabetically between all the words with the same letters, is it clearer now? Mark it as resolved if it is.

  • Default User Avatar

    I can assign any number to any word. And it would be a solution. But it would not, in fact, be YOUR solution.
    And that's the problem: You did not give a specific value format to follow.

  • Default User Avatar

    The check is for blank spaces because

     will save all your white-space. aas well as the css-style { white-space: pre; }
    

    Essentially: it's implementation use case.

  • Default User Avatar

    For those having the trouble of weird justification errors; Make sure you read the instructions thoroughly. They throw some curveballs in there. XD

  • Default User Avatar

    No spoilers but; that error is directed towards the line it's on. Re-read the instructions, because there's a case you're missing.

  • Default User Avatar

    I enjoyed the simplicity of this kata. I do however think that more should've been hidden (if possible, i haven't written a kata yet, so i don' tknow the feasibility.)

    Something like: "There is a bomb defined somewhere, figure out where to find and diffuse it."

    And instead of giving us the functions, we have to find them and call the disable with correct key, or we lose.

    The current description pretty much gives us all the answers.

  • Custom User Avatar

    "We can then assign a number to every word, based on where it falls in an alphabetically sorted list of all words made up of the same group of letters."

  • Default User Avatar

    What does each letter/word/space/position have for a value?
    Your expectations for what exact value you want returned is very poorly defined.