Question: Use Double Linked list to write the solution. I know how to implement this using a single linked list. Comment the code. Write a C++
Use Double Linked list to write the solution. I know how to implement this using a single linked list. Comment the code.

Write a C++ class (or a set of classes) that implements a stack using a double linked list. The type of data contained in the stack should be int. The maximum size of the stack is 50. Implement the following methods: . Constructor and destructor; I 5 points . void push (int value); // pushes an element with the value into the stack. 5 points int pop 0:/pops an element from the stack and returns its value. 10 points int isEmpty0:// returns 1 if the stack is empty, O otherwise. 5 points . int numOfElements0:// returns the number of elements in the stack. 5 points void printElements0;/ print out the current stack to the console. 5 points A main function; /execute each method of your stack (except the destructor) at least once without asking input from the users. 15 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
