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.
I encountered the same issue as @deadwater. Some of the JavaScript random test cases use input values that exceed the
n < 4000
condition. Iterative solutions are not affected by these cases -- "M" is just repeated -- but digit-based solutions are. Marking this as an issue.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.