May-28-2021, 07:14 PM
No, I personally don't like it. Not at all. Algorithm is just brute force. Creating list of all permutations????
I strongly suggest not to share it with anybody. Instead rewrite the code using better algorithm.
>>> len(list(permutations(list('abrakadabra')))) 39916800Yes, almost forty million. On any machine it will take considerable time and memory. Try to do it with longest word in common use
incomprehensibilities
and you'll see....I strongly suggest not to share it with anybody. Instead rewrite the code using better algorithm.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.