Constructing Stacks and Queues

In the previous chapter, we discussed several linear data types, which were list, linked list, and Doubly Linked List. In this chapter, we are going to discuss other linear data types, and those are stack, queue, and dequeue. The following are the topics we are going to discuss regarding these three data types:

  • Building a Stack ADT and then fetching, pushing, and popping elements in this ADT
  • Building a Queue ADT and then fetching, enqueuing, and dequeuing elements in this ADT 
  • Building a Dequeue ADT and then fetching, enqueuing, and dequeuing elements in this ADT 

Get C++ Data Structures and Algorithms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.