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

Hello! About problem set 6, problem #3. I dont actually understand how can I increase perfomance of "is_valid_word" function after implementing "get_words_to_points" function?

OpenStudy (anonymous):

This problem assumes your original implementation of is_valid_word searched the word list to see if the word was in there. Problem 3 asks you to look for the word in the points dictionary instead. Searching dictionary keys is faster than searching for items in a list - I think there is an explanation of this is one of the lectures

OpenStudy (anonymous):

ah. ok, thanks

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!