Ad
  • Custom User Avatar
  • Custom User Avatar

    AttributeError: module 'sys' has no attribute 'stdout'

  • Default User Avatar

    Tests should not print to stdout.

  • Custom User Avatar

    This kata really is just linear regression because all tested datasets are linear, hence makes it a duplicate of https://www.codewars.com/kata/5515395b9cd40b2c3e00116c

  • Default User Avatar

    Python issue: function name is match, which becomes a reversed keyword in Python 3.11.
    Fix:

    • rename match to match_ in referee code and sample test
    • use the following template at the beginning of the referee section to be retro-compatible
    try:
        match_
    except NameError:
        match_ = match
    
  • Custom User Avatar

    looks like the tests are way too much tight. I'm sure I have the required time complexity and yet, I time out on the big test.

  • Default User Avatar

    Very small suggestion - in details section the input is repeatedly referred to as matrix and is referred to as matrix in the example tests also (presumably leftover from old version of kata).

    The size of the matrix (an integer) is referred to as M in the details.

    However in the final version of the kata, the function find_sum uses argument m rather than matrix which is confusing after reading the description.

    Suggestion: change the use of the M in details to e.g. S to refer to the S x S size of the square matrix, m , that will be used in the kata.

  • Default User Avatar

    Error-margin Tests are not debuggable!

    They do not reflect by how much my model deviates from the expected result. The output is just Error to big..

    Either

    1. The upper limit of the RSME you use in the test cases should be clarified in the kata description
    2. or a failed test should print by how much the error margin was overstepped
    3. or a failed test should print what the expected y-coordinate (± error_margin) was
  • Custom User Avatar

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

  • Default User Avatar

    Is this problem a variation of a well known category of problems?

  • Default User Avatar

    This non-solution takes more than 10 seconds, and sometimes times out:

    def program(lst, n):
        pass
    
  • Default User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Hello, this kata is bugged.
    In some test cases we are expected to output twice the same value for the first and second index, while the value only appears once in the list.

  • Loading more items...