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.
I like recursion, but there's an easy non-recursive solution.
Description should be language-agnostic.
The note part can be simplified to the 2nd argument will always be greater than or equal to the 1st one.
Approved
python new test framework is required. updated in this fork
honestly do not get why this was upvoted 6 times for best practices
I believe that's because 493039 == 79**3, so it shouldn't be an issue.
Since this Kata has performance requirements, it should be tagged as such.
something wrong with tests??
i got an arror: expected [ 492804, 1 ] to deeply equal [ 493039, 1 ]. When im testing my code on 493040 - the result is [ 492804, 1 ]. You cant get integer root from 493039.
This comment is hidden because it contains spoiler information about the solution
Now it seems to work after I've changed everything to BigInt in my solution
Could you retry now? I also think the reference solution should be updated. It's a bit too slow with BigInts. But that is something we can change in a later stage.
Missing solution and framework import in Python's tests and sample tests
solving in JS I get
what seems to be an issue in the tests as they expect floating point numbers instead of integers;
maybe reference solution is wrong for big enough numbers
It's been a while so you've probably learned this, but you can change the tests.
Loading more items...