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.
the testcase on {0,0,0,0,0} returns 0? in theory, any value range(0-5) would be correct, since sum or zeros is zero , everywhere. correct me if I were wrong.
Thanks.
Was I the only one gets confused (misled) by the word Sequence? I thought a sequence should have at least 2 elements. If that is the case, this solution will not seem to work.
Otherwise, really elegant!