introduction to queues

queue is one type of linear data structure, it follows (FIFO) first in first out. the elements which are inserted first, that element will be removed first

let’s look into a real-time example

in the below image, some persons are waiting in queue for tickets, the first get tickets and goes out from the line

introduction to queues 1

in the queue, there are two operations

  1. Enqueue (Insertion)
  2. Dequeue (Removal)
queues example visual
Default image
Vishal Devxo
Vishal Devxo is a DevOps engineer and a Backend developer, he spends all his time for creating good tutorials with better visuals and blogging, developed some projects based on Python-Django, some hacking modules and scripts in python