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.
Thank you. Modified range for
False
test cases.This comment is hidden because it contains spoiler information about the solution
Thank you. Added new random tests (total 100). 50 is
True
based on some approach which I used before.False
cases split to 10 (previous version) and 40 random uniformly distributed numbers checked by reference solution.Thank you. You're right. Random tests are not only random paraments, but also random order/results. I added some "shuffling" in random block to improve tests.
Thank you. Added new tests (for example, max
num
forbase**exp
7**(7*80+1)) to "prevent hack" solution.Can confirm, check my solution.
This is not enough, you can still pass the tests using the solution I linked by replacing 49 with 343.
Edit: there's possibly no way to completely forbid such hacks, but at least add a few cases for
base**exp
wherebase
is divisible by 7 andexp
is not divisible by 7.The "random tests" are not random at all.
Thank you. Added new tests (for example num = 49 or 35^7+49). And now some old incorrect solutions aren't passing tests.
Thank you for feedback. I've changed name of function.
The tests are too weak.
The function and parameter names should be in snake_case.