Stack & Queue
Stack is a LIFO (last-in, first-out) list, which means it is hard to add or delete in the middle of the stack, but you have the access to the most recently added item.
Queue, unlike stack, is a FIFO (first-in, first-out) list. You are able to add new items at the end of the queue, but can only remove the earliest item.
Linked-List
Linked-list is the most complex list. It is actually a group of nodes.


No comments:
Post a Comment