Skip to content

Commit

Permalink
queues
Browse files Browse the repository at this point in the history
  • Loading branch information
karan1205 committed Mar 6, 2022
1 parent fa6ab59 commit 070d335
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DSA/queues/README.md
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.

0 comments on commit 070d335

Please sign in to comment.