Ad
  • Custom User Avatar

    Im not so smart to understand how can I transform [[0, 0], [2, 2],[0, 0]] to "45-3km -135-3km". Like, how 0 0 2 2 0 0 turns into 45 3 -135 3. What is the formula oh transformation of pair of random numbers, to random numbers? Sorry, Im a newbie.

  • Custom User Avatar

    Kata is tagged as PUZZLE.There is enough information to guess the formula.

  • Custom User Avatar

    Description of the task is very unclear.

  • Custom User Avatar
  • Custom User Avatar

    I will take care.. thanks.

  • Custom User Avatar

    I will take all your feedback into account.. thanks.

  • Custom User Avatar

    Some issues for you:

    • function name Directions should be directions. Capitalizes the first letter, usually for class name. otherwise, it should be camelCase.

    • "the degree of rotation of the ship" is not clear. perhaps it should be azimuth angle? I'm not sure.

    • The points will be presented as a Array of binary Array "[x, y]".

    Your points is a 2D array, each subarray is a 2-elements integer array.

    • The result will be string beginning with the degree and then "-" then the required distance value and then "km" etc.

    Your expected result is end with "m", instead of "km".

    • Note: dont care about digits after the comma.

    It's not clear. In fact, your expected result should rounding to the nearest integer.

    • No sample tests.

    • No random tests.

  • Custom User Avatar

    I am new on javascript dose this work for other languages.