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

umm is this right?

OpenStudy (anonymous):

OpenStudy (anonymous):

it prints stuff out! constrainedMatchPair is the only function you need to check if it IS wrong, because i know the other one works...and the rest is premade. PS3 #3 http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/pset3.pdf

OpenStudy (anonymous):

ok i know it isnt so please help me out on constrainedMatchPair

OpenStudy (anonymous):

They're asking for n in firstMatch and k in secondMatch if n+m+1==k then add it to a list

OpenStudy (anonymous):

Sorry I didn't check your code before responding all you did was mistyped a variable. In line 4 of the constrained matchPair you used ==secondMatch instead of secondSearch.

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!