Revision Sheet (Stack, Queue, Linked List)
Revision Sheet (Stack, Queue, Linked List)
(a) Write the definition of this structure (twice, array based and linked)
(b) Only for linked implementation, write the following basic functions for this structure:
Create, PushBottom that pushes from the logical lower end of the structure, PushUp
that pushes from the logical upper end of the structure, StackSize, StackEmpty,
StackFull, and DestroyStack.
Using the Doubly_Ended ADT, write a C program that allows users to:
(c) Store a set of integers into a Doubly_Ended ADT by entering the even numbers from
one end and the odd numbers from the other.
(d) Output the stored even numbers followed by odd numbers onto the screen.
Doubly_Ended ADT