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.
My first thought, the recursive error is because this function is already called permutations. And then you import another function called permutations. So, no.
Well, what can I say... today I found out that flags in the discussion of solutions are not useless (and yes, I've been here for a year) :)
No, the posts here can be seen from the homepage discourse.
wait why is that? Only people who have finished the code can see this right?
top pun / comment of the century
a comment like this merits the spoiler flag
I don't even want to understand this, LMAO
This comment is hidden because it contains spoiler information about the solution
Thank you so much for the help and I know what I got wrong, but it is saying that 1.2.3.4 is False and cant seem to figure out why. Is it because of a break line?
Use
print(strng)
to see for which input your function fails.In this case,
print('"' + strng + '"')
would make your mistake a bit more obvious.it is essentially saying that True should equal False
This comment is hidden because it contains spoiler information about the solution
Hi,
not an issue, your code is too slow, that's all. (that or it runs in an infinite loop)
edit: looks like you're trying to randomly generate permutations. Think about it, when you have all permutations of 10+ elements to generate. => ?
Cheers
This comment is hidden because it contains spoiler information about the solution
Doing this in python, are we not allowed to use the itertools import permutations library?
Loading more items...