Ad
  • Custom User Avatar

    Hi!
    I have spaces left, that's the reason my output isn't correct.
    Thanks!

  • Custom User Avatar

    hint (maybe): you DO return a list of multiline strings, not a list of lists of string as shown above?

  • Custom User Avatar

    Ah, didn't know that. So, must be because of left or extra spaces: I'll check it out again.
    Thanks for your help!

  • Custom User Avatar

    That does not change anything because your output is sorted before it's compared to the expected solution.

  • Custom User Avatar

    Hi everybody!
    I have one question:

    why for this input:

                   "+-------------------+--+", 
                   "|                   |  |",
                   "|                   |  |",
                   "|  +----------------+  |",
                   "|  |                   |",
                   "|  |                   |",
                   "+--+-------------------+"])
    

    The expected output is this one:

                       "                 +--+",
                       "                 |  |",
                       "                 |  |",
                       "+----------------+  |",
                       "|                   |",
                       "|                   |",
                       "+-------------------+"]),
                     ["+-------------------+",
                       "|                   |",
                       "|                   |",
                       "|  +----------------+",
                       "|  |",
                       "|  |",
                       "+--+"])]
    

    And not this one (which, btw it's my program exit)?:

                      ["+-------------------+",
                       "|                   |",
                       "|                   |",
                       "|  +----------------+",
                       "|  |",
                       "|  |",
                       "+--+"])]
                       
                       "                 +--+",
                       "                 |  |",
                       "                 |  |",
                       "+----------------+  |",
                       "|                   |",
                       "|                   |",
                       "+-------------------+"]),     
    

    What's the rule? I understood that you read from left to right and the output contains the figures read from left to right, am I wrong?

    Cheers and Thanks