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!
Lists are not hashable but tuples are. But genuinely quite a clever idea using a dictionary, saves all of the conditional expressions :)
[...'abc'] in this case is similar to 'abc'.split('')
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.
This comment is hidden because it contains spoiler information about the solution
pain
Someone forget remove unused import, other copy-paste
Thanks for showing me how much of a dumbass I actually am.
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
does or(|) always go left to right with "g" ? (bc www.|\..+ doesn't touch the domain that also starts with a dot)
This comment is hidden because it contains spoiler information about the solution
Thanks for showing me you can multiply arrays like that
Hey! nadolski's explenation is much better than I could give at the moment as I'm new to regex and this one is partially taken from stack overflow and partialy changed by me!
Loading more items...