1. The diagram of a railroad switching system in Figure 6-13 is commonly used to illustrate the notion of a stack. Identify three stacks in the figure and show how they relate to one another. How can you use this system to construct any possible permutation of railroad cars?
2. You have already designed an ADT stack of your own and its pop and push operations. What are the exceptional conditions you must account for while implementing the push and pop operation for an array-based stack?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here