codeIIEST / Algorithms

A Repository to store implementation of some of the famous Data Structures and Algorithms (mainly in C/C++/Java/Python) for everyone to learn and contribute.
http://codeiiest.github.io/Algorithms/
MIT License
203 stars 163 forks source link

Queue using Stacks #293

Open meanmachine889 opened 1 year ago

meanmachine889 commented 1 year ago

DESCRIPTION

implemented a queue using stack

STEPS TO REPRODUCE

used stacks to perform enqueue and dequeue functions in a queue

EXPECTED OUTCOME

What did you expect to happen

ACTUAL OUTCOME

What actually happened

Proposed Solution [optional]

If you know how to solve the above, please provide details here.