Usage of data structures Stack and Queue
Hello! I am a student of computer science. I have this question in my mind if we could actually make a queue from a stack and a stack from a queue. Since stack is Last in First Out(LIFO) and Queue is First in First Out(FIFO) so how could we make a queue by using stack which means that stack start behaving like a queue?Similarly how can we make a stack using queue which means queue starts behaving like a stack?








