ps3 problem 4: Is the problem asking to write a program to compare possible matches with substitutions against exact matches to produce a tuple of essentially incorrect sub matches? http://codepad.org/yR816Mjl If so, I think I did that. If not, I do not understand what they are asking for...
Yes, the problem is confusing. If I understand correctly what you're explaining, yes. Your output looks correct, and the code looks like it's generating the output correctly. http://codepad.org/2l4PUeJP I added a test function to your post. If the test prints nothing then it passed. Otherwise it prints what failed. The test prints nothing on my code and your code, so we're both right, or wrong in the same way. I bet we're both right.
cheers for your posts seanlerner, I'm working thru the same problems and have found your stuff pretty handy in helping me work out how to tackle the problems.
Join our real-time social learning platform and learn together with your friends!