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.
You need to find a solution that involves swapping digits around. I cannot read your code because I do not know enough, but I tried both methods of:
both methods were too slow, and would time out.
the key is logically swapping digits around.
Should be same result, but wouldn't it be slightly faster to shortcut the extra operation?
On second thought, keep it as is. In this case, there's no reason to overcomplicate things. The four arguments are probably more readable for a begginer.
I was just focusing on 8 kyu, it will be quite difficult for them to combine the concept of an array and a variable, but thanks for the idea, if it turns out that beginners know this, then I'll probably add it ) ( in any case, using a loop there will be no way to solve the kata more quickly, no matter how sad it is :( )
I'd say using a 'tuple' would be better. But I agree that having two vectors is better than four coordinates
Yes, but the tests that the author coded are requesting a return zero from a list with two itens, despite this is not explained in the details session.