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.
Actually, there is no unnecessary computation here. min(numbers) is simply repeated both in the if and else conditions. Only one of them gets executed, though.
Yes, it does. I mark it as resolved.
Python: sometimes in random tests None is expected, but if I print the dict and the target value (print(d, target)), the value is actually in one of the lists. Some examples:
Log
{'jiqhozzbwf': [547, 845, 29], 'arzkmizkpc': [438], 'rtfqoijs': [282, 935, 535, 375, 368, 408, 798, 748, 332, 273]} 748
'rtfqoijs' should equal None
Log
{'ssqjocbs': [242, 345, 930], 'tpyrqjvqz': [708, 416, 670, 350, 616, 40, 964, 238, 370, 380], 'phwla': [374, 134, 655, 987, 389, 584, 896, 369]} 987
'phwla' should equal None
Sorry, I put it there to check the case and I forgot to remove it! It's been removed now.
The individual letters of the input should have random case -> done, please approve forked version
May I have a detailed explanation of why this was rejected? Otherwise I cannot learn from my mistakes...
Hopefully it complies with new test framework now. Also, the case was already random before, because it sampled ascii letters, both lower and uppercase, and then with 50% probability picked the uppercase-only version. Now I commented this last part, hoping that I have understood your complaint right. Anyway, I had just translated literally the original version, so in my opinion this modification was not necessary - or else, the original JS tests should be modified too.
Please approve if it is fine now, if not: specify more clearly and precisely what is wrong. Thanks.
Sorry, I realized my mistake. I corrected point 2 and 3, but not 1. Since the whole range is covered by random tests, fixed tests would only be redundant. Indeed, they are absent in original JS tests as well. Please approve, thanks.
Python translation submitted for re-approval after original author (who is now inactive) accidentally rejected it.
Forked for re-approval
Python translation kumited. Please approve :)
Why was this rejected? Apart from the fact that the function name does not comply with the snake case, I do not understand what is wrong.
Both solved, please check the latest fork.
Well spotted, thanks! I have switched them, and also added the message to be shown when the test fails.
JavaScript translation kumited. Any chance it can be approved? (author is inactive)
Loading more items...