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.
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.
Kata is tagged as
PUZZLE
.There is enough information to guess the formula.Description of the task is very unclear.
Fixed.
I will take care.. thanks.
I will take all your feedback into account.. thanks.
Some issues for you:
function name
Directions
should bedirections
. Capitalizes the first letter, usually for class name. otherwise, it should becamelCase
."the degree of rotation of the ship"
is not clear. perhaps it should beazimuth angle
? I'm not sure.Your
points
is a 2D array, each subarray is a 2-elements integer array.Your expected result is end with
"m"
, instead of "km".It's not clear. In fact, your expected result should rounding to the nearest integer.
No sample tests.
No random tests.
I am new on javascript dose this work for other languages.