Ad
  • Custom User Avatar

    I'd recommend using initializer instead of global variables.
    You should avoid using global variables.

  • Default User Avatar
  • Custom User Avatar
      // TODO: Get organized!
      console.log("THIS IS THE INPUT:", array);
    }```
    
    Output:
    
    ```Should work as expected
    Handles small inputs
    THIS IS THE INPUT: [ 'Isabella', 'Andrew', 'Harper', 'Grace' ]
    Wrong value for Isabella,Andrew,Harper,Grace,Isabella,Ethan,Brooklyn,Michael,Sophia - Expected: undefined, instead got: ["Andrew","Brooklyn","Ethan","Grace","Harper","Isabella","Isabella","Michael","Sophia"]
    Handles bigger inputs
    THIS IS THE INPUT: [ 'Daniel', 'Gabriel', 'David' ]
    Wrong value for Daniel,Gabriel,David,Emma,Andrew,Emily,Addison,Elijah,Emma,Ethan,Robert,David,Ava,Christopher,Olivia,Joseph,Andrew,Isabella,Brooklyn - Expected: undefined, instead got: ["Addison","Andrew","Andrew","Ava","Brooklyn","Christopher","Daniel","David","David","Elijah","Emily","Emma","Emma","Ethan","Gabriel","Isabella","Joseph","Olivia","Robert"]```
    
    
  • Default User Avatar

    same issue. the correct output should be [1,2,3,4] not [1,0]

    edit: (javascript)

  • Custom User Avatar

    I have the same issue, is there a way to overcome

  • Custom User Avatar

    No problem :).

    There is a bug in your code. I improved the test feedback to give more of an idea why the solution can fail. Try again and hopefully the feedback will be useful!

  • Default User Avatar

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

  • Custom User Avatar

    That's odd, can you post how you build the board in a spoiler comment? I don't see anything that stands out in the tests that should be marking that as incorrect.

  • Default User Avatar

    I have the same problem, it happens in JavaScript.
    It's exactly the same string.

    Expected: □ ■ □ ■ ■ □ ■ □ □ ■ □ ■ ■ □ ■ □, instead got: □ ■ □ ■ ■ □ ■ □ □ ■ □ ■ ■ □ ■ □

  • Default User Avatar

    I have, none that I can find. I even copied the expected/received output to my text editor and double checked.

  • Custom User Avatar

    Have you checked that you're not including extra whitespace?

  • Default User Avatar

    great kata, thanks! Not sure if I'm missing something, but I appear to be getting the correct output and the test is failing (javascript):

    Expected: □ ■ □ ■
    ■ □ ■ □
    □ ■ □ ■
    ■ □ ■ □, instead got: □ ■ □ ■
    ■ □ ■ □
    □ ■ □ ■
    ■ □ ■ □

    I can't identify any difference between the expected and received outputs. I'm sure I messed up somewhere, but wanted to post this in case I found a bug. Any suggestions or feedback would be great :)

  • Custom User Avatar
  • Custom User Avatar

    +1. Same problem. No a whitespace at the end. Checked error message in sublime and received equal values.

  • Custom User Avatar

    I've the same problem and I don't understand what Digikid13's solution to it is. Andddddd I had a whitespace at the end of my answer.

  • Loading more items...