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.
Same idea with me!
nice
I can only speak for myself, but I had originally used itertools.permutation() to split the given number into an array of all of its permutations and then sort through to find the lowest number greater than the original. This worked for the test cases but not when I actually attempted since really large numbers timeout as this algorithm is super inefficient.
So I changed the whole gameplan and simply forgot to change the 'import itertools' line at the top.
Someone forget remove unused import, other copy-paste
They may trying to use the function(s) in the module itertools but the failed or find out that they don't need it.
And that's why they leave the code 'import itertools' undeleted.
But I am a dumbass so I will use itertools.permutations to solve it.
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
elegant and clean
but for a long time I tried to understand why this )))
I`m innocent ))
This comment is hidden because it contains spoiler information about the solution
:)
There no needs of itertools. I have forgot to delete this line.
This comment is hidden because it contains spoiler information about the solution
There is nothing stopping a solution from sharing states externally:
https://www.codewars.com/kata/reviews/55fb9664568d9cf1a900001c/groups/5bbb03fbb684d31c75000451
Loading more items...