Data structure problem
Question4: Queue &stack
Assume that we have two ADTs.
One is a Queue ADT with the followingstandard operations:
Queue CreateQueue(int x); //Creates aqueue with size = x;
void EnQueue(int x, Queue Q); //Insertan integer x to the queue Q.
int DeQueue(); //Removes a queueelement and returns it as a result.
The other is a Stack ADT with thefollowing standard operations:
Stack CreateStack(int x); //Creates astack with size = x;
void Push(int x, Stack S); //Insert aninteger x to the stack S.
int Pop(); //Removes the top elementof the stack and returns it as a result.
In addition,
PayPal Gateway not configured
PayPal Gateway not configured