In a restaurant a stack of plates are prepared every night for dinner.If the act of taking a plate is considered a pop operation ,and the act of adding a clean plate to the stack is considered a push operation.It is required to determine the optimal size of the stack (the number of pates at the beginning of the night), show how you would modify the stack state type to do so .
you may add any necessary state or function members
Comments
Leave a comment