May-29-2021, 04:14 AM
(May-28-2021, 07:14 PM)perfringo Wrote: No, I personally don't like it. Not at all. Algorithm is just brute force. Creating list of all permutations????
>>> 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 useincomprehensibilities
and you'll see....
I strongly suggest not to share it with anybody. Instead rewrite the code using better algorithm.
So, where do I get suggestions on how to make it better. I don't call myself an expert and I am always willing to learn better ways to improve my code and algorithms. I am open to any suggestions if you have any...