Ad
  • Custom User Avatar

    the issue is with how you measure whether your code is correct. by measuring differently from the tests, you get a different outcome. if you measure the same way, you will find that your function misbehaves. for example:

    assert digitize(123) == [1, 2, 3]
    
  • Custom User Avatar

    You're printing something and returning something else. There is no issue with the kata.

  • Custom User Avatar

    There seems to be an issue with the Kata. All test and attempt fail even when the List (Python) is shown exactly as in the example. Tried casting to string and int as well but no way to fix it?

  • Custom User Avatar

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

  • Custom User Avatar

    I've never had to pay for using Codewars, but here's the kicker, you can try this same code out on your local machine! Just make a list with 10 million entries and have your function run over it. You can even have just the same number repeated that many times.

    Sometimes the servers can be slow, but this problem expects a solution that makes even parsing 10 million results a cinch!

  • Custom User Avatar

    You can try again, I added failure messages for users who did not buy the paid subscription.

  • Custom User Avatar

    No, everyone can see failed test cases for free. Usually tests show them, but if they don't, everyone can use print to see them.

  • Custom User Avatar

    No, codewars red people don't get anything like that. You can always just print the input to see what it is.

  • Custom User Avatar

    Time: 487ms Passed: 336Failed: 2Exit Code: 1

    Let me guess. I only see the failed cases if i have a paid subscription?

  • Custom User Avatar

    Sorry, i used Codewars a year or more earlier and never had such problems. They obviously want you to pay for it.

  • Custom User Avatar

    If your solution times out, it means it does not pass all tests. It passes some tests, but not all of them, because it runs out of time.

    Paid users have some additional features, but they do not get easier tests.

  • Custom User Avatar

    Great, i passed all test but cant finish the Kata, since i get the timeout by server. No idea how i could refactor any further to get the Kata done. Pay to win style? ;/

  • Custom User Avatar

    Mednoob, be a bit more kind.

  • Custom User Avatar

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