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.
python new test framework is required. updated in this fork
python new test framework is required. updated in this fork
python
Bit of an inconsistency: instructions state you it should return an array of arrays, but the test (and attempt) cases expect a list of lists.
(EDIT by @kazk: Updated for Codewars framework)
Consider using numpy testing once this is deployed. This gives beautified and helpful output for test failures:
Why is the list split in 2? Just to do the same thing twice?
Also, why the hell was this approved? This is a duplicate.
You definitely need to improve the instructions for this kata. Even now, I have no idea how this worked ---> pattern(30, 7) = [-1, -8, -3, -2, -1]. It would be helpful if you made the example better by showing why the output of [-1, -8, -3, -2, -1] makes sense coming from (30, 7).