Manvityagi / Data-Structures-and-Algorithms

Contains Implementation of selected Data Structures and Algorithms which are important for the interview preparations
45 stars 47 forks source link

Queue Is Implemented #24

Closed ghost closed 4 years ago

ghost commented 4 years ago

Description

Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change. Fixed #15 => I have Implemented Enqueue, Dequeue, front and Display function of queue.

Type of change

Please check options that are relevant to your PR.

Checklist:

ghost commented 4 years ago

Declared Size variable , as in queue we use enqueue and dequeue so i have changed the name to enqueue, dequeue, front, rear. I have handled the overflow and underflow conditions. Also, I have performed the dequeue functionn in O(1) which was implemented in O(n) before and I have added the comments for every single difficult line to make it easily understandable

ay2306 commented 4 years ago

Please resolve the merge conflict, I will merge it.

ghost commented 4 years ago

There are no conflicts now.