A community for students.
Here's the question you clicked on:
 0 viewing
double_o_seven
 3 years ago
ps6 #4: http://dpaste.com/hold/560657/
Probably not revolutionary, but what do you think?
double_o_seven
 3 years ago
ps6 #4: http://dpaste.com/hold/560657/ Probably not revolutionary, but what do you think?

This Question is Closed

Arbiter
 3 years ago
Best ResponseYou've already chosen the best response.2At first glance, the code you have written in the functions "get_word_rearrangements" and "pick_best_word_faster" looks fine. There is small typo at the end of the letter where you have "currentHIgh" instead of "currentHigh." Your code in "different_combos" is not quite correct. If you run it on the list ['a', 'b', 'c'] it will miss the subset "ac." It will miss even more subsets as the list gets larger. Also, when you're sorting strings, you're calling the sorted() function with its optional parameters. For example, you have "sorted(w, None, None, False)." You can just call sorted(w) and get the same result. What you're doing isn't wrong, but it's much easier/quicker to type the shorter one.

double_o_seven
 3 years ago
Best ResponseYou've already chosen the best response.0thanks for catching the typo. I fixed the different combo's to get all the possibilities. I thought i had them before, but i guess I didn't check well enough. thanks. http://dpaste.com/hold/561367/
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.