Friday, 5 February 2016

Stacks and Queues - Week 4

This week was about Stacks, Queues and linked lists.
The lab was comparatively easier as I have practised the implementation of Stacks, queues and linked lists in high school in C++.

The implementation was easier than that in C++. The quiz of the lab was about the stack status and how things go inside and out of the queue.

Things go inside and out of the stacks by LIFO(Last in First out) method and in queues by FIFO(First in first out). There are four methods which have been assigned with both of these: Insertion, Deletion, __eq__, __str__.

The system by which one node is connected to another in a linked list really makes it the most interesting part.

No comments:

Post a Comment