So far we have focused on the inbuilt data structures that Python provides as part of the core language – the list, tuple, set and dictionary. There are also data structures that are fundamental to ...
Understand the concepts of stacks and queues. Explain stack and queue operations. Compare LIFO and FIFO structures. Apply stacks and queues in problem-solving. Evaluate their uses in computer science.
The close relative of the LIFO stack is the FIFO - First In First Out stack - also known as the Queue because it mimics the behaviour of a queue in the real world. That is you store an item on the ...