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.
Reraising this as an actual issue.
I have the same issue, dont know why it is happening
Input is coordinates of all points. You just have to calculate two points which have max distance between them. you have to output the max distance you get.
I don't understand this Kata, who can explain me please?
The problem was that in the examle code you used farthestDistance, but the tests expected furthestDistance instead. This is misleading a bit.
You're right. Is it worth correcting in tests because if I do it then invalidates all previous answers (some really clever ones) ?
I think it has been not corrected in the tests.
Thank you. Corrected!
Great Kata! Grammar and spelling Nazi that I am, though, it should be "Farthest Distance" not "Furthest Distance" since we are referring to literal (mathematical), not figurative distance.
Eg. https://www.codewars.com/kata/simple-fun-number-22-is-smooth/cpp
I'll wait a couple days before plugging the hole and notifying the author. ;-)
Absence of evidence is not evidence of absence.
Have you tried to create tests where the reference solution would be accessible?
Idk what you're talking about. I've tried accessing the reference solution on purpose a few times in C++ but it said "bla-bla-bla is not declared" each time.
@FArekkusu, @JohanWiltink, whoops! I misread who responded. Sorry, Johan. :-)
@JohanWiltink, I beg to differ. If a function is not declared static, then it is accessible from any module within that application. To hide it within the test module it must be declared static, localized within a function as a lambda, or declared as a method within a class/struct. If you include it within the
Describe
block then it's a method, but if you define it outside that block sansstatic
then it's accessible from the user's code. I've been able to call the reference solution in a number of C/C++/NASM katas because of this loophole. I won't give details here, but it is something to keep in mind when you're writing katas and translations.The functions in C++ are inaccessible as well.
Loading more items...