Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 467 Bytes

File metadata and controls

16 lines (9 loc) · 467 Bytes

Queue-implementation-python

This is a simple Queue implementation in python using a list.

Basic operations of Queue

enqueue — Inserts an element to the back of the queue

dequeue — Removes an element from the front of the queue

isEmpty — Returns true if the queue is empty

top — Returns the first element in the front of the queue

size — Returns the length of the list

showItems — prints all the items in the queue