The stack is a container of objects that are inserted and removed according to the (LIFO) principle.
The queue is a container of objects (a linear collection) that are inserted and removed according to the (FIFO) principle.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|