Ad
  • Custom User Avatar

    This is not even an issue with spec, the kata generates the expected answer before passing the argument to the user's function. In this case, the user is mutating the list as they iterate through it, causing issues. I'm closing this issue.

  • Custom User Avatar

    There is a false value in that input as well as [] (an empty array). The actual input for that test is ['a', 0, 0, 'b', null, 'c', 'd', 0, 1, false, 0, 1, 0, 3, [], 0, 1, 9, 0, 0, {}, 0, 0, 9].

    expected [ 'a', 'b', null, 'c', 'd', 1, 1, 3, 1, 9, {}, 9, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0 ] to deeply equal [ 'a', 'b', null, 'c', 'd', 1, false, 1, 3, [], 1, 9, {}, 9, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0 ] means that your code returned [ 'a', 'b', null, 'c', 'd', 1, 1, 3, 1, 9, {}, 9, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0 ], but it should have returned [ 'a', 'b', null, 'c', 'd', 1, false, 1, 3, [], 1, 9, {}, 9, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0 ]. The message you copied does not mention the input to the function.

    This problem is caused by a bug in your code. For future reference, the issue tag is meant to be used when there is a problem with the actual kata. You can use the question tag if you need help with your own code.

    As to the reason this is happening, make sure your code isn't confusing false and [] with 0. 0, false, and [] are all falsey values, so it seems like your code might be confusing them.

  • Custom User Avatar

    I think this testcase is wrong

    expected [ 'a', 'b', null, 'c', 'd', 1, 1, 3, 1, 9, {}, 9, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0 ] to deeply equal [ 'a', 'b', null, 'c', 'd', 1, false, 1, 3, [], 1, 9, {}, 9, +0, +0, +0, +0, +0, +0, +0, +0, +0, +0 ]

    In the first array there is no 'false' however the second array has a false for some odd reason.
    There is also not a square bracket in the first array, however there is one in the second array. Can you help me out ?

  • Custom User Avatar
  • Custom User Avatar

    i litrally had to go study this before answering it.

  • Custom User Avatar

    C#:

    • The input type should be params int[] ... to be in-line with the description about passing arguments
  • Custom User Avatar

    Go fork

    • got rid of the eldritch horror that used to be in the test cases
  • Custom User Avatar

    Ranks cannot be changed as of now, especially for old katas like this one

  • Custom User Avatar

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

  • Custom User Avatar

    @Carl98K 0 and +0 evaluate to the same thing, you wouldn't be able to detect a difference as no difference exists between two of the same value. The problem is that your algorithm is flawed - you are reading from and writing to the same object without taking care to ensure that the writes don't affect the reads. Like peeing upstream and then getting it in your drinking water.

    -0 would be another matter. that is a distinct value. but I don't think those are included.

  • Custom User Avatar

    Truee getting tired of pasing the test then when trying to attemp it suddenly has different conditions provided. +0 is not included in the test only 0.

  • Custom User Avatar

    Codewars problems are now not that good and properly made. I always get this unexplainable condition added at the end of testing.

  • Custom User Avatar

    move the zeros to dart
    Translation Dart

  • Custom User Avatar

    too easy, it should be 7 kyu

  • Custom User Avatar

    I was using Python. I passed it already. Thanks for your help though.

  • Loading more items...