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.
your issue report is unhelpful. you have to specify the language you are using, and examples of the incorrect cases, with the input, expected and actual values.
Translate Dart
check the translation of the kata
This comment is hidden because it contains spoiler information about the solution
I am encountering an issue where the random test cases for the "Snail on a Rubber Band" kata are failing incorrectly. My solution works perfectly for all fixed tests and logically handles the proportional movement of the snail in relation to the increasing rubber band length. Random test cases generate incorrect expectations, where the result is expected to be true, but it is returning false, and vice versa.
same observation
Javascript random test are broken no ?
I think it would be a good idea to state what exactly "a year" means in the description.
updated remaining languages; the issue about generating better random tests still remains
Your Python solution returns
True
for this test case. The author's solution returnsFalse
but the reference solution inside random tests (line 35) returnsTrue
.see fork: ref sol and my sol still pass that edge case test, what am I missing here..
The expression (canSnailReachEnd(10, 2, 1)) == (1) is false, why its false?
Working on patching the C++ translation. I just have one concern - the year-to-minute conversion constant may slightly differ user from user. I'll try to somehow avoid testing in that very tiny margin, but do you think the description should be edited to let the user assume exactly 365 days in a year?
Random tests are very weak. They do not catch incorrect solutions (the reference solution is also wrong, see the issue below).
Some examples (Python) of incorrect solutions which should be invalidated with proper tests:
https://www.codewars.com/kata/reviews/66cef0a057be5b69ac06193c/groups/66d091a3bf5043bfb0768345
https://www.codewars.com/kata/reviews/66cef0a057be5b69ac06193c/groups/66cef836e388a9647683d493
Reference solutions (in random tests) are wrong in all translations except C++.
The following test case should be added:
The expected results should be
false
.approve his fork
Loading more items...