Monday, 8 April 2019

Stack vs Queue from a developer point of view

the stack is like a car when she stopped in the sign you can't pass the sign before the car in front of car you need to wait until all car front of you pass you can pass then its like stack and the queue it like a bridge in one way you can enter of the bridge and can't return there is just one way for enter and one way for output or like when  i traval by the plane i entered the airport and went a plan and arrived and i change my mind and i decide to return back  myabe i will the same plane or another plan this is the same thing

No comments:

Post a Comment