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.
oooooh. know I get it. You should add this example to the instructions for people like me :)
And another problem. Input:
So algorithm is something like:
And the result is:
[71, 39, 28, -168, 18, 29, -27, -171, 10, 42, -71, 7, -45, 58]
, but test expects:[71, 39, -49, -67, -55, -30, -25, -30, -47, -45, 58]
I can be mistaken, but I guess with
shift = 2
and arrays size = 5, the first 3 elements of the first array must be in the result. So the result array must start with[71, 39, 28...]
, when test expexts[71, 39, -49...]
. Why?Now everything is correct with sizes! Thanks!
In the Ruby version something is wrong with tests. Or I missunderstood something. The instructions says: "The arrays in the array will all have the same size and this size will always be greater than 0.", but i get arrays with different size. Example input: