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

Alright, I'm stumped and have spent too much time staring at my code. I'm on problem set 6, #3, and the permutation section of my code doesn't seem to be finding all possible permutations. So, when I run on a hand, let's say "l a b s n k", this program will find "lab" and return it with the right score, but it won't find "banks", which is obviously a better choice. Here's the part of the code that probably contain the problem http://codepad.org/2djGj5pU - any help would be greatly appreciated. Here's the full code if you think the problem lies deeper. http://codepad.org/aXwcMgkd THANK YOU!

OpenStudy (anonymous):

Sorry - modified the get_words_to_points function here: http://codepad.org/nNA7tJXA - doesn't help but i think the older version wasn't completely right.

OpenStudy (anonymous):

F O O O O O C K figured it out sry. I wasn't resetting itz_a_werd in my loop if anyone is interested. thx though / sorry for the clutter question.

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!