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 code and explanation is amazing
This solution was written before
.sum
existed :)why not just sum instead of map
Resolved, the code example in the description has already been rewritten to be language agnostic.
Description amended in this fork
No one is going to apply this change to 50 languages, sorry :-)
This comment is hidden because it contains spoiler information about the solution
Approved
Approved some time ago
python new test framework is required. updated in this fork
Approved
python new test framework is required. updated in this fork
Aaaaaaaaaah, it's a progression. Aaaaaaaaaah… indeed, this is better than (1..num).sum, cuz if num == 1e36, then we're in trouble. Good stuff! Thanks!
Multiple things wrong
is not tested for 1 element inputs.1 element input with two different foods (e.g
Fish and more chips
) is not tested either.Loading more items...