• +91 9723535972
  • info@interviewmaterial.com

Data structure Interview Questions and Answers

Question -
Is it possible to implement a stack using a queue?



Answer -

Yes, you can implement a stack using two queues. Any data structure to act like a stack should have a push() method to add data on top and a pop() method to remove the top data.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners