Stack act as a A Room that has only one door and the person who enter in this room along with other people will be last to leave the room. But Queue is like cave that has two ending with one enter and one exit gate and arranged in such way that first one who has enter in this cave will be first to leave the cave through exit gate.
|