Ad
  • Default User Avatar

    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

  • Default User Avatar

    Notes:

    • The weight array is at least as long as the number of names, it may be longer.
  • Default User Avatar

    Fixed, thanks!

  • Default User Avatar

    @Dezoway: go on with the good work!

  • Default User Avatar

    @Samickey: I slightly modified the random tests so the distance are always strictly increasing.
    Thanks for your posts and cheers!

  • Custom User Avatar

    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

  • Default User Avatar

    Did you read this part of the description ?

    If a town Xi is not visited you will suppose that the triangle X0Xi-1Xi+1 is still a right triangle.

    BTW I am happy to see that you passed the kata in OCaml which doesn't have much success at CW!