It should be evident that this implementation of min( ) takes time linear in the number of items in the stack. You are to modify this implementation to obtain a constant-time implementation of min( ).
You are to provide a complete working implementation of this enhanced stack. You may use any of the code provide in the text, but be sure to unambiguously attribute all such use -- failure to do so is a violation of the honor code.
Rules for submitting this (and all future) programming assignments:
All of the above should be placed i an envelope with your name on the outside, and submitted at the beginning of the class on the due date. Submissions will not be accepted after 10 minutes have elapsed from the start of class. Late submissions will not be accepted without documented reasons.