Ad
  • Custom User Avatar

    @petrarch1603: just put a f"" somewhere in the test cases, the compiler won't use anything else than 3.6, then.

  • Custom User Avatar

    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 ;-)

  • Custom User Avatar

    Good! I'll modify the Python version.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Hey Blind4Basics,
    I updated the Kata to resolve this. Thanks for the feedback.
    -P

  • Custom User Avatar

    Hey vatsan, thanks for the feedback. I edited the Kata (ruby) for this case.
    -P

  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar
    dropzone([13, 5], [[4, 0], [12, 18], [8, 14]])
    [4, 0] should equal [8, 14]
    

    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 ? /

  • Custom User Avatar

    Hi Raul, please see the issue above: your translation presents the same flaw.

    cheers

  • Custom User Avatar
    fire = [1, 5]
    dropzone = [[4, 4], [2, 8], [9, 3]]
    Expected: [4, 4], instead got: [2, 8]
    

    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)

  • Custom User Avatar

    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.

  • Custom User Avatar

    Python version of your kata kumited:http://www.codewars.com/kumite/5b6e08d369826c908500003f?sel=5b6e08d369826c908500003f
    If you agree you may approve it.

  • Custom User Avatar

    I made the same mistake! :)

  • Default User Avatar

    Make sure you have selected MRI 2.5 in the version list.

  • Loading more items...