Ad
  • Custom User Avatar

    "Your task is to build a function that appends a string to a array."

    should be "to an array"

  • Custom User Avatar

    Nice solution. I had the same layout with the tests but I didn't think to use a fn to resolve the undefined, just tried (x|0) in place and it didn't work :-x Awesome, this is why I love this site.

  • Custom User Avatar

    AWESOME kata. Thanks a lot. I was stunned that there weren're more tests... things that might trip up hacky parsing; or at least some larger tests to give some satisfaction :-) I'd appreciate anyone's feedback on my solution, as wel.

  • Custom User Avatar

    Now that I see test 25... :-O

  • Custom User Avatar

    I've only solved four or five 4kyu problems at this point, but IMO the last test I can see (timesFive) pushes this into 3 territory. One man's opinion.

  • Custom User Avatar

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

  • Custom User Avatar

    Might it make sense to reduce the number of tests run? At 500, if you leave a log output for anything, it times out. Wouldn't 50 tests work just as well as a proof?

  • Custom User Avatar

    Could you explain how this works, or why it works, or how you thought of it?

    I mean, I'd love to upvote this, but I don't understand it :-)

  • Custom User Avatar

    Does anyone else feel like this is too inherently complicated to be a 7kyu problem? Sure, the syntax and the technicality of coding it might not be very complicated in the end, but it requires real critical thought, and I expect (not having yet tried it) a lot of iteration after trial and error.

    I mean, in the last 7kyu I implemented Array.prototype.sum() and such. Now I'm finding the optimal solution for Towers of Hanoi?!

  • Custom User Avatar

    I was expecting to find an answer like this after I submitted my 50 line solution. Excellent, thanks a lot!

  • Custom User Avatar

    Noticed this today: http://gifx.co/4JrD

    I think adjusting the posiiton or adding margin to account for it would resolve. Alos, the [x] button has a hover issue, seen in the same gif above.