Ad
  • Custom User Avatar

    Why did the issue about this being a duplicate got resolved?

    This is an exact duplicate of https://www.codewars.com/kata/553a2461098c64ae53000041. Solutions from that kata can pass this kata with no modifications.

  • Custom User Avatar
    • Repeated number tests has nothing to do with what is actually tested in that block => the title must be changed

    • the Big tests and the repeated number tests should be merged into one single test.describe block, picking randomly one type of case or the other, and all that in random order.

      This translates to:

      • build a list with all the big tests inputs and their expected output: [(input,output), ...]
      • extend that list with all the inputs and outputs of the "repeated number tests"
      • shuffle that list
      • then use the list content to test the user's function
  • Custom User Avatar
    for s in range(360):
        ...
        elif s==0:
            test.assert_equals(0,0)
    

    Really...? => Fix the range, rather.

  • Custom User Avatar

    the reference solution is visible to the user through a stacktrace, if their code is raising an error (= don't ever wrote actual solution in the statement calling the user's function)

  • Custom User Avatar

    Re-raising issue below. I understand that you're new to codewars, however, please don't resolve issues that aren't resolved. Duplicate katas should be unpublished (or the voting system will ensure that they're retired after so many negative votes).