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.
done
Can't be changed.
Fixed
The description is clearer now.
"do not mutate the input" ?
I got the same problem by random cases.
For example
Input: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22] 3
Result: [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14], [15, 16, 17], [18, 19, 20], [21, 22]] should equal []
No idea why it should be [] by chunksize 3
P.S. when I duplicated the array from the input one, the code passed. It would be nice to see such info as it is the problem for 7kyu.
It might have been before and after I made a small edit to the kata.
This comment is hidden because it contains spoiler information about the solution
Good idea. I'll keep that in mind in the future. Thanks.
If I change the Kata now, do you know if it will break the solutions that are already completed?
think of ...vals as of the 'rest' arg which is a collection of everything what you call the function with after the positional arguments. In this concrete example calling scoreTest with (str, right, omit, wrong) will map to str -> str and vals -> [right, omit, wrong]. V arg of the reduce's callback is a value from your str collection (an answer to the question in the test), so vals[v] will return you the number of points for right, omit or wrong answer and [1,1,-1] array simply gives you a sign you should use with this value. '() => expressions' is a way to define lambda in ES6
done.. thanks