Scrambled word Problem, solved by Python

Put your programming skills to the test in these challenges.

Scrambled word Problem, solved by Python

Post by darkness786 on Thu May 23, 2019 10:08 am
([msg=98270]see Scrambled word Problem, solved by Python[/msg])

I have solved scrambled word problem by using Python but unable to complete the word on time almost took 25 sec to solve all problem. So please anyone look at my script and update it to make it more fast processing.........'
Thankx in advance...
anyone can contribute its knowledge and idea.
:geek: :geek: :geek: :geek: :geek: :geek: :geek: :geek: :geek: :geek: :geek: :geek: :geek:

My source code:-
http://s000.tinyupload.com/index.php?file_id=06040568799398062404
darkness786
New User
New User
 
Posts: 2
Joined: Tue May 07, 2019 12:37 pm
Blog: View Blog (0)


Re: Scrambled word Problem, solved by Python

Post by hackuin60s on Sun Dec 15, 2019 9:22 am
([msg=99897]see Re: Scrambled word Problem, solved by Python[/msg])

Answering to the post after long time, but may be useful to other members trying to solve the mission using python.

have a look at module 'itertools'
permutations is all you need.
Certified: RHCSA, RHCE, CCNA.
Free software" is a matter of liberty, not price. To understand the concept, you should think of "free" as in "free speech," not as in "free beer."
User avatar
hackuin60s
New User
New User
 
Posts: 25
Joined: Mon Apr 14, 2008 3:17 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests