acmbvp / Hacktoberfest

Make your first PR! ~ A beginner-friendly repository made specifically for open source beginners. Add your profile, a blog or any program under any language (it can be anything from a hello-world program to a complex data structure algorithm) or update the existing one. Just make sure to add the file under the correct directory. Happy hacking!
https://bvcoe.acm.org/
236 stars 469 forks source link

Update ReverseQueue.cpp #651

Open pragya-sharma opened 2 years ago

pragya-sharma commented 2 years ago

In this file 'ReverseQueue.cpp , i hava updated the function of reverse ,in which i hava take one stack . and we will check if our queue is not empty , then we will push front element of queue in stack . and then we will pop out from queue . now we have to return queue , so we will push all values of queue in stacck . and return it.