Ad
  • Custom User Avatar

    sample tests are the same across languages

  • Custom User Avatar

    Yes. No. It depends. In many languages it is, and, what's most important, description explicitly, clearly specifies that it is.

  • Custom User Avatar

    @arif-umer78

    your code is looping one time too many, and thus writing to memory it should not write to. it happens that in the sample tests, your array is located just behind the reference one in memory, so you are overwriting the expected array

  • Custom User Avatar

    It's possible there is an issue with the tests logs, but I am not sure. I left a message to the translator.

  • Custom User Avatar

    No need to apologise, and you're welcome -

    I don't use C but I noticed that a Codewars power user, akar-0, is currently looking at your issue with the C translation and he will see if there is an issue with the C translation of this kata.

    The page is a useful resource in general, but in this case it might be indeed a problem with the kata not you!

  • Custom User Avatar

    I can't see which language you are working in - in general it always helps if you state which language you are working in so users can troubleshoot your issue.

    In Python language tests, there is a case with input integer = 5 and limit = 25 which is expecting the correct result to be 5,10,15,20,25.

    Are you sure that your code is producing {5, 10, 15, 20, 25} or is your code producing {30, 10, 15, 20, 25} (which is the wrong answer)?

    By the way you can read this useful page for help with troubleshooting such messages if you're unsure:

    https://docs.codewars.com/training/troubleshooting/#error-messages-and-printing-your-inputoutput