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.
Description should be language-agnostic
Does not mention
min
should always be <=max
how is the construction 21 + 22 + 23 + 51 + 52 + 53 is it equal to 30 ? if the result is 42
OP solved it, closing
Test.assertEquals(sumTimesTables([],1,10), 0, "Empty array");
Fixed by OP
Approved
python new test framework is required. updated in this fork
Python: Random tests are vulnerable to input modification
Why would it be slower? Not that performance matters when you are doing code golf.
It will shave a few bytes but on the other hand the time of execution will be longer
You can omit the
;
and replace&&
with&
to shave a few bytesThe
result
variable in line 2 is a "suprise global". Just so you knowI think this is just missing a few newlines to be perfectly readable production-quality code.
Very nice with the (sum) usage
🦊
Loading more items...