Ad
  • Custom User Avatar

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

  • 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

    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