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.
This comment is hidden because it contains spoiler information about the solution
Thanks, I didn't know that.
it cannot be considered a kata suggestion, because there is nothing the kata author can do about it. languages versions and packages/libraries are installed by the administators of Codewars, not authors and contributors. You can request new libraries here
In Elm, It seems like the Parser module is not installer (or I understood wrong the compiler message...)
Maybe it could be installed ?
My bad, thanks.
C fork
In OCaml,
we
seems to have more elements thanpeople
. Which is not specified in the description and cause an error when doing we traversal to compute score.Fixed, thanks!
In the OCaml version, there is a typing mistake on the solution setup : the semi-colon should be a colon on the parameter m.
Original :
Suggestion :
Great Kata again !
@Dezoway: go on with the good work!
@Samickey: I slightly modified the random tests so the distance are always strictly increasing.
Thanks for your posts and cheers!
At first I did not understand the description,then I realized that the distance is measured using the Pythagorean theorem,only one cathet is unknown.I like this kata
Thank you for your quick answer !
Yes but I recognize that I didn't pay much attention to it and I haven't made the implication that the right angle could be on X_{i+1} and not on X_i.
It could indeed lead to the solution, but I'm not sure it is clear enough.
Since it is written that
I think one could deduce that the distances are in increasing order (and it is the case on the test cases and all basic cases I presume) since
Also it is not precised that if X_i is not visited, X_{i-1}X_iX_{i+1} is not necessarily a right triangle, so even if X_i is not visited you could presume that X_0X_{i-1} is still smaller than X_0X_{i+1} which leads to considering the right angle on X_{i-1}.
On my opinion it would be better explained if it was written that in "X0X_{i}X_{i+1} is a right triangle which right angle is not on X0" or "is on X_{i} or X_{i+1}".
This way it is clear that X0X_{i} and X0X_{i+1} are unordered (considering X_{i} is visited or not).
Anyway, maybe its just me (english is not my mother tong, maybe it is clear for other) and I don't think it is a real obstacle in this kata !
I'm the one happy that OCaml has been implemented in CW and that people bother to translate kata to OCaml !
Cheers
If only the route always consisted of right triangles it would be cool
Loading more items...