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.
Are you modifying the input?
I got same issue: array lengths differed, expected.length=0 actual.length=20
Seems weird, since input is: 15 17 0 29 20 27 33 32 25 0 34 3 31 13 9 8 1 5 8 27 31 29 13 19 25 17 14 25 7 19 19 29 7 0 17
Can anyone help, please?
@arfro. LOL. Thanks for you comment.
FYI - They have exactly same effect on me, but I dream them first and then I make them.
More animal Katas are in the pipeline... stay tuned.
:-)
I just checked the java test cases: the output is correct. Might be you didn't correctly understood the "pattern" to use. ;)
Errr... I misread your first comment, sorry: the output should actually be ["NORTH", "EAST"]... ;s
There are now 1100 guys who passed the Java kata. Since long ago (more than 500 guys) the tests can't be changed. Thanks for your post!
yes it should
But the test case meens, that there is no two valid arguments. It is only one valid in it.
To see what the test case is, add
console.log(arr, x);
as the first line of your function.My program has worked like the last number in sequence is the second function argument, but it was not.
It was only a last number from the first argument -array with unclosed second bracket.