Write a function to check whether the contents of two stacks are identical. Neither stack should be changed. You need to write a function that prints the contents of a stack to verify that your function works.
Write the pseudocode for an algorithm that reverses the contents of a stack (the top and bottom elements exchange positions, the second and the element just before the bottom exchange positions, and so forth until the entire stack is reversed). (Hint: Use temporary stacks.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here