Ad
  • Custom User Avatar

    A nice and understandable one. Thank you.

  • Custom User Avatar

    Thank you. As a self-taught programmer I think I really need this, so your edits are highly appreciated. There is some difference between solving (that is, actually using) and creating tasks. There is obviously a lot to be learned by doing the latter.

    What can I do with the code you have provided? Can I somehow take it back into the kata, and republish it; or is 'Retired' a permanent condition which means it is unavailable for any improvement and is trashed once and for all?

    I really lack knowledge about collaborative programming. That is, I know how to write something (some small thing) on my own and push or pull things to/from github, but not together with other folks. So even what a 'fork' means is not completely clear to me. I sort of understand that it means changing somebody else's code and publishing with a link to the original but that might not be true either.

  • Custom User Avatar

    Hello,
    I got it. I will try to improve this. I haven't written a kata before, so I will try and make use of everything you experienced guys write here. Thanks!

  • Custom User Avatar

    Thank you, I will try to fix it. It's my first kata.

  • Custom User Avatar

    The image is unavailable, so there is no example now.
    First I was amazed at the input image. But five minutes later I understood it was not the actual example but the 'unavailable' plug.

  • Custom User Avatar

    Say console.log(peopleInLine) and you will know at least what you get at the input, so it will help you sort it out.

  • Custom User Avatar

    Hi. I had the same problem, you can read the discussion below. You can solve it by copying your array first, that is, make arr1 and copy arr into it, and then do the rest. Otherwise you will get the same error.
    Yes, displaced by anything, including 0. Just copy the array instead of manipulating the input array.

  • Custom User Avatar

    'How can this be' actually stood for 'but it must return true'.

  • Custom User Avatar

    Thank you! I got it about modifying inputs.

  • Custom User Avatar

    It is JavaScript. Looking at the tests was helpful but I didn't see it at the very beginning. So I thought it could be put in the description.

  • Custom User Avatar

    How can this be? Both of them are just sorted ascending, right?

  • Custom User Avatar

    In the JavaScript version I unfortunately get the following:

    [ 9, 10, 14 ]
    Expected: false, instead got: true

    AND:

    [ 2, 3, 4, 5, 6 ]
    Test Passed: Value == true

  • Custom User Avatar

    First I did not realize that the input was an array of arrays, not an array of strings, and I got stuck. Could we probably mention it in the description for clarity? Thank you.

  • Custom User Avatar

    This is not a coding but a physics problem.

  • Custom User Avatar

    Thank you for this tough problem. I've been stuck with it for some time, and it's interesting to tackle this.
    At last I've done it. It's been the trickiest one so far.