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.
You should have replaced $emp_stamp$ with something that's not straight out of PostgreSQL documentation.
More complex is good, because katas that require copying a simple formula and nothing more have been done, and are not very interesting. If it is new and complex it might be better.
Unpublished. Will change to Vincenty formula.
Is a bit more complex, but hopefully a new & unique challenge.
I will fix that. Sorry, I thought it might be unambiguous.
I hope "Return the distance as float. Do NOT round/ceil/floor" is clear and technically correct ?!
I have never heard of that, so that might be new.
If you're going to remodel the kata, would it be an idea to unpublish it in the meantime, so you don't accumulate solutions for a different problem?
Nooooooooooooooo!
It is perfectly acceptable to require accuracy of 13 decimals ( though it's a bit many ), but do not specify anything that could be construed as rounding or truncating.
Read this and go forth and sin no more.
ETA: You didn't learn, did you?
Perhaps I can change the distance algorithm to Vincenty formula
Duplicate: https://github.com/Codewars/content-issues/wiki/List-of-Possible-Duplicate-Kata#haversine-distance
This can also be considered a duplicate of this kata (which goes much higher). Once the conversion to string is done, sorting alphabetically is trivial (I only had to copy paste my solution and do custom sort).
yeah, I mostly already deduced all of this. My point was rather that your description should be more explicit about all of this (you're entering the place of "long descriptions", where providing the information isn't always "enough": some well thought sections/summaries help a lot there, so that the needed info stands out more)
edit: don't forget to remove the rounding stuff from the description
Thanks a lot for your suggestions. I am new to kata authoring and wholeheartedly appreciate all kinds of inputs.
Let me quickly outline the assumptions I made for this kata, to make it more comprehensible:
I hope this helps understand the kata better.
there are weird assumptions in the task, imo...
Heading must be in degrees and rounded to a whole number between 0 and 360.
I believe this doesn't apply anymore => to removesounds reasonnable about the context. But what about actual testing of the correctness of the implementation?
Closing, but I'd prefere to see a shorter range of possible values, on my side.
The code doesn't use any rounding - test cases are precise up to 13 decimals. I am happy to share my solution if you are interested.
For the sake of navigating VFR flights you certainly don't need that much of precision - so I thought granting a tolerance of +- 1 might be a good tradeoff in case anyone uses rounding.
Added var R = 3440 as preloaded variable for the earth radius in nm for the sake of this kata.
Loading more items...