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.
It would greatly help with understanding if you would break down the counting of sub-arrays in the description. Maybe something like:
input = {2, 2, 2, 3}
sub-arrays = [2], [2], [2], [3], [2, 2, 2], [2, 3], [2, 2, 2, 3]
total = 7