anonymous
  • anonymous
ps6 #4: http://dpaste.com/hold/560657/ Probably not revolutionary, but what do you think?
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
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.
anonymous
  • anonymous
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/

Looking for something else?

Not the answer you are looking for? Search for more explanations.