5. Connecting the dots — Big O and Queue Data Structure

source: Google images.
An example for Queue data structure is people standing in line to use the ATM machine
Linked List and Queue Data Structure

Creating a Queue with a single node

Enqueue / Insert an item at the end of the queue

Enqueuing an item
Adding 10 at the end of the Queue and the output of the same using enqueue( )

Dequeue / remove an item from the front of the queue

Dequeuing of an item from the beginning

Resources:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store