Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
AttributeError: module 'sys' has no attribute 'stdout'
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
Python issue: function name is
match
, which becomes a reversed keyword in Python 3.11.Fix:
match
tomatch_
in referee code and sample testlooks 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.
Very small suggestion - in details section the input is repeatedly referred to as
matrix
and is referred to asmatrix
in the example tests also (presumably leftover from old version of kata).The size of the
matrix
(an integer) is referred to asM
in the details.However in the final version of the kata, the function find_sum uses argument
m
rather thanmatrix
which is confusing after reading the description.Suggestion: change the use of the
M
in details to e.g.S
to refer to theS x S
size of the square matrix,m
, that will be used in the kata.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
This comment is hidden because it contains spoiler information about the solution
Is this problem a variation of a well known category of problems?
This non-solution takes more than 10 seconds, and sometimes times out:
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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.
May I pick the same element twice or thrice? In other words: What is the result of
program([3, 2, 1], 9)
?[3, 3, 3]
or[-1]
?For "1, 3, 4, 5, 5, 8, 8, 9":
"[1, 4, 9] should equal [1, 5, 8]"?
What reason to take 1,5,8 instead of 1,4,9?
4 is smaller than 5.
8 is smaller than 9.
1 is in both.
So, each array has a number, that is smaller than the other.
So what array is "smaller"?
Why not [4,5,5]?
Loading more items...