Question: Develop a new data structure that can work either as a stack or as a queue. That is, upon instantiation of the object, it may
Develop a new data structure that can work either as a stack or as a queue. That is, upon instantiation of the object, it may either use push/pop or insert/remove operations but not both. The data structure should be dynamic and shouldnt be restricted to size limitations. Illustrate your design and provide all necessary definitions for the new object and its operations in C language.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
