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.
No, the list of names is already given as a parameter of the function. Read this on how to train on CW
Suppose the given list of numbers doesn't contain any positive numbers.
There is nothing to sum up, but a return value still needs to be specified.
The mathematical sum operator
$\sum$
is defined to result in 0 if there is nothing to sum up, but not everyone knows that. Some definitions of a sum even have the sum of nothing be undefined.