-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Queues | ||
|
||
* A Queue is a linear structure which follows a particular order in which the operations are performed. | ||
* The order is First In First Out (FIFO). | ||
* A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. | ||
* The difference between stacks and queues is in removing. | ||
* In a stack we remove the item the most recently added; in a queue, we remove the item the least recently added. |