Sun, 15th Nov 2015, 00:17 Re: Programming Lab Stack Execution Question
One clarification on my earlier response to the student. ...prompted by his follow up question shown below. > Does this mean that R5 would never be a failure if someone didn't do the > extra credit and assumed all test strings were properly formed? > > Thanks, > <<name withheld to protect the student who forced me to take another look>> If you come up with the straightforward correct algorithm that I have given you lots of hints about, then yes, you will never get failure due to a badly formed string. HOWEVER, if you come up with a bad algorithm, then you could end up pushing and popping random amounts and end up thinking you had a bad expression. Good luck getting this done in time. Yale Patt