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.
yes. every recursion could be rewrited in loops if language allows loops
is there a way for a possible solution without recursion?
The random tests only go up to 20.
someone did
Python version: tests for 0 to 11 should be added to sample tests like the other language versions.
Hmmm, for some reason I thought, that random.choices already selects unique elements. In this case,
random.sample
is better, indeed.Use of
set
suggests the unique elements are desired, what would makerandom.sample
possibly a better fit.For some hints, see here.
I would suggest using random.choice in main tests.
instead of
Ive tried to fix it, chech this out, please
Thank you too!
All correct, now.
Thanks!
Check again, please
Can you pass the tests using this solution?
I am not sure whether authors can see option of "TRAIN" or "TRAIN AGAIN",
if you can see that,
try running this solution
otherwise
open train link of the kata in private window, and run this solution.
You'll see this solution do not pass tests.
This comment is hidden because it contains spoiler information about the solution
This is entirely wrong statement!(If that would be the case, then I would get Exit Code 137, Max buffer limit reached)
(Do you think the test framework just give up and call it a day?)
Loading more items...