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.
I think 6 would be [2,1,1,1,1] and 7 would be [2,2,1,1,1] and 11 would be [3,2,2,2,2] mainly driven by the restriction that the fifth portion be as long as possible but less than or equal to the other 4.
When testing the javascript version, it will sometimes pass randoms numbers that actually exceed the parameter condition indicated (n < 4000). That is, I get "expected" answers that look like MMMMMMMMM when they pass something like 8000.