Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 12 Online
OpenStudy (anonymous):

Hi, I've defined the pickBestWord method in ps10.py as follows. First I defined a getAnagramsDict methods for the wordList class which construct an anagram dictionnary mapping strings consisting of alphabetically sorted letters (e.g., abc) to their anagrams (e.g., [cab,bac]). The pickBestWord method takes a hand, extracts its letters, sort them to produce a potential key for the anagram dictionary. For each possible suffix of that string, I then look up the anagram dictionary and extract the corresponding anagrams. Then I get the score of each anagram and take the one with the highes

OpenStudy (anonymous):

I think your reasoning is correct. This was my solution: http://openstudy.com/users/chribonn#/updates/4fcce38ae4b0c6963ad7c3da

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!