Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • 18171520?v=3
  • Profile pic
  • 32236948?v=4
  • Profile pic

    Still could'nt tell how many random tests are there??

  • 9571508?v=3

    That's not the input of any test in Python (remember mentioning the language you're using when asking for help or reporting a problem), print it before mutating it. The tests are ok. You're also confusing the error message: Actual should be Expected where actual is what your function returns and expected is the correct answer. Delete below post, it's repeated.

  • 32236948?v=4
  • Profile pic

    There is a fundamental error in the way the tests are checked im pretty sure that the instructions do not match what is the actual correct answer to the tests:
    Example:
    array = ['a', 'b', None, 'c', 'd', 1, 1, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    expected_output = ['a', 'b', None, 'c', 'd', 1, 1, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    correct_test_output = ['a', 'b', None, 'c', 'd', 1, False, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

    The correct test output removes a 1 and replaces it with False despite there being no False in the original array.
    Pls fix

  • Profile pic

    There is a fundamental error in the way the tests are checked im pretty sure that the instructions do not match what is the actual correct answer to the tests:
    Example:
    array = ['a', 'b', None, 'c', 'd', 1, 1, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    expected_output = ['a', 'b', None, 'c', 'd', 1, 1, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    correct_test_output = ['a', 'b', None, 'c', 'd', 1, False, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

    The correct test output removes a 1 and replaces it with False despite there being no False in the original array.
    Pls fix

  • 32236948?v=4

    this is not how codewars works.

    x)

    well, about that, I guess I can tell more about it but well...

    And the discourse below me is locked

    not my answer

    Instead of being rude you could have just told me how many random tests are there.

    yeah right. Let's just say that seeing the same things over and over is sometimes just... boring?

    I'll think about an update of the test suite. I'm tired of seeing this stuff coming up again and again...

  • Profile pic
  • Profile pic

    If you dont want to be helpful then its fine,this is not how codewars works. A person should be able to see expected output even if their output is wrong as its an important part of the debugging process .And the discourse below me is locked because its a damn spoiler. Instead of being rude you could have just told me how many random tests are there.

  • 32236948?v=4

    Before posting issues, read the discourse.

    For instance, read the thread just below yours

  • Profile pic

    Python Testing Framework is freezing when I am trying to submit.
    I pressed submit to check how many test cases are there and what is the range of n, So that I can program accordingly, but sadly it just freezes!!
    If it would only display test cases when right input is matched then please @Blind4Basics can you please provide me with the number of total test cases and the range of n.

  • 32236948?v=4

    not an issue: your algorithm is just too slow, as you suspected it (that's the whole point of the kata!). So you need to find a better algorithm.

    Note:

    • Issue: problem in the tests, the kata itself,...
    • Question: user having a problem with his code. => that's you. ;)
  • Profile pic

    I am gettin Execution Timed Out error. Even I tried my code on my computer at pycharm, it can calculate 2000000th number. But I guess server can't calcualte in time. Any suggestion?

  • Loading more items...