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.
This solution have a problem with n1 = n^x and n2 = m^y
these types of questions convinced me to start learning number theory, mind if you tell me specifically whats this about?
me too)))
Wow, I used number theory in my solution, but it wasn't anywhere near this compact
No, it is fast.
The tests will only generate a list, also it is likely you see less test cases because the runner will not display the rest (i.e, halt operation) upon an assertion failure is detected.
There are 2 logical errors in your code:
The largest number starts from rank 1, followed by 2nd largest number etc... , but your code assigns the smallest number as rank 1.
Also, your code does not handle multi-way ties as it only checks the unique positioning of arrays instead of all elements' positioning
#11bfr_42x
your solution is very elegant . thanks for the intel .
python is a black art .
I know it but i dont know the third argument
What a amazing standard library! (but it maybe slow)
Your solution is very slow, you can solve this problem using number theory.
This comment is hidden because it contains spoiler information about the solution
Very nice and challenging kata, compliments for this one, I had a lot of fun solving it.
you can do it without actually raising the number to the power (much faster for huge powers)
Loading more items...