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!
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.
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.
Join our real-time social learning platform and learn together with your friends!