Ad
  • Custom User Avatar

    Answered by Chrono.

  • Custom User Avatar

    @Unnamed: Not for javascript (Steffan already fixed it), see the current first post, I though maybe some of the other translations could have the same problem (didn't check).

    I posted it here so those other translations were checked and also for the snake emoji.

  • Default User Avatar

    @Chrono79 But reference solutions are called before users' solutions, so ownership can be passed safely (and in Dart I think List is immutable), so what's the difference?

  • Custom User Avatar

    Fixed in all languages.

    you also missed :snake: for Python in this post :wink:

    Well, I didn't know about that emoji :wink:
    edit: lol found an emoji for PHP: :elephant:

  • Custom User Avatar

    Please, pass a copy to the user's function to avoid problems with input mutation, and you also missed :snake: for Python in this post :wink:

  • Custom User Avatar

    Don't mutate the input array.

    Well, now it's been fixed in the test suite, but it was because of that.

  • Custom User Avatar

    The input was mutable in random tests in javascript. Already fixed.

  • Default User Avatar

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

  • Default User Avatar
  • Custom User Avatar

    Sorry, I forgot that part! :)
    thanks!!

  • Custom User Avatar

    Your result can only contain single digit numbers, so if adding a digit with it's position gives you a multiple-digit number, only the last digit of the number should be returned

    ^ That

  • Custom User Avatar

    Hi, I'm trying this kata, but it seems that your tests are wrong with the numbers higher than 10:

    it("Testing for [4, 6, 7, 1, 3]", () => assert.deepEqual(incrementer([4, 6, 7, 1, 3]), [5, 8, 0, 5, 8]));
    it("Testing for [3, 6, 9, 8, 9]", () => assert.deepEqual(incrementer([3, 6, 9, 8, 9]), [4, 8, 2, 2, 4]));
    it("Testing for [1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 8]", () =>
    assert.deepEqual(incrementer([1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 8]), [2, 4, 6, 8, 0, 2, 4, 6, 8, 9, 0, 1, 2, 2]));
    });

    the first one should return [5, 8, 10, 5, 8], the second one [4, 8, 12, 12, 14] and so on. Can you fix it so I can complete it?

    Thanks!