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.
@petrarch1603: just put a
f""
somewhere in the test cases, the compiler won't use anything else than 3.6, then.Python: Reference solution depends on dict keys order, which is not guaranteed in Python 3.4, and causes random tests to sometimes fail.
Please use a non-faulty, short and concise solution from the best solutions instead ;-)
Good! I'll modify the Python version.
Not a kata issue, that's a problem with your code, downcase isn't used at all in the test suite nor nil is passed as an argument. Check your code again, and print the input value so you see what you're doing wrong.
Hey Blind4Basics,
I updated the Kata to resolve this. Thanks for the feedback.
-P
Hey vatsan, thanks for the feedback. I edited the Kata (ruby) for this case.
-P
Hi Raul, I created this Kata in Ruby and I added some new rules to resolve this issue. Please take a look and see if you can incorporate a solution in Python.
Thanks, P
Java translation kumited, please review and approve. The random tests issue with dropzones of same distance should not occur in this version, i.e. the minimum distance is guaranteed to be unique.
from your random tests i fail there is more than one point that has the same distance to the fire which list am i supposed to return in all of these cases ? /
Hi Raul, please see the issue above: your translation presents the same flaw.
cheers
Ruby: the random tests may generate ties between different points. You should either give a precise rule to follow, or change the way you check the result, checking that the distance is minimal rather than check the coordintes of the points.
EDIT: same with python (even if it occurs rarely, in this version)
Yeah its my first Kata, I did it more as a 'how to make a kata' experiment. I'll probably make some more. A lot of the fundamental katas have been done, so I'll try to find a creative way to structure them.
Python version of your kata kumited:http://www.codewars.com/kumite/5b6e08d369826c908500003f?sel=5b6e08d369826c908500003f
If you agree you may approve it.
I made the same mistake! :)
Make sure you have selected MRI 2.5 in the version list.
Loading more items...