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.
Random test generator updated.
Probability of valid values: 79-80%
using ToString() is a bad idea, because the ToString() can be overriden and it can return a different result.
Interesting...
I have only print(v) in my code (Python) and after running full tests I've got:
Passed: 161 Failed: 51 Exit Code: 1
:D :D :D
So 152 test cases are for "Non-existant values" and only 48 for valid "start point".
Many reruns of testing those tests returns similar proportion for passed and failed tests.
Is it ok? I don't think so.
I can imagine, in rare case, that all random test will have "Non-existant values" and then you need to hardcode 9 cases from
"Fixed Test" and voile, you're done.
I'm marking this comment as sugestion to fix those random test.
You can. If you get execption from math maybe is becouse of first test that have 0 as argument and you cannot log 0.
The correct answer.
Lol no it doesn't
Shorter code but is it cleaner? If I found this code in the wild I would have to think a long time about edge cases.
tryhards who are at 2 kyu coming back to 8 kyu's trying show off by doing them in some sad convoluted way while ignoring all the instructions :)
OK
it literally says use an if statement in the description. I guess it's clever to not follow basic instructions now :)
In my case, using '/' instead of '//' passed the random tests.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...