ps6 #4: http://dpaste.com/hold/560657/ Probably not revolutionary, but what do you think?

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

ps6 #4: http://dpaste.com/hold/560657/ Probably not revolutionary, but what do you think?

MIT 6.00 Intro Computer Science (OCW)
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

At 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.
thanks 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/

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question