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.
Solution like
passed.
Trivial duplicate of https://www.codewars.com/kata/555b1890a75b930e63000023
Note that we already have lots of katas about partitions:
https://www.codewars.com/kata/getting-along-with-integer-partitions
https://www.codewars.com/kata/number-of-integer-partitions
https://www.codewars.com/kata/explosive-sum
So: