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.
I fixed it according to your suggestion using
n.toFixed(8)
. Should be safer now in case of faulty rounded floats :)good point, sorry :)
Could you please be more clear? I'm not that good in English nor programming. Do you mean that I should set kata requirement, i.e. Float(0,2) and then check it with same tollerance in tests? Or just in tests?
For now I was assuming, that points like
[1.5517241379310345,0.9655172413793105]
are valid answers.I've noticed another error in kata submit validation:
as you can see, when path starts and ends in same point, something goes really wrong ;)
My solution (Javascript) is failing on random tests and looking at the output, it seams that test assertion might be wrong:
looks like first element in expected solution is an ending point ([-19, -14]) instead of starting point ([-23, -18]).
Hi,
Maybe it's silly question, but does (retired) in title mean, that I can't (final) submit my solution? I've got it working, all tests passed, but there is no "Final submit" showing after successfull "Submit"... Every time I click "Submit" all tests pass and same message is shown: "Good Job! You may take your time to refactor/comment your solution. Submit when ready.".
Thanks.
I had some hard time figuring out what I am supposed to do, I mean: what was exactly the task.
Maybe some info like: Write a function, which takes as parameters an array and a callback function.
Besides that - simple, but cool kata.