Computer Science, asked by sanjanagujaral685, 1 month ago

Mrs. Vaishali wants to change the order of objects in a stacking order and rearrangethem. Guide her by telling the option used for arrange the objects at the bottom inthe stack.

Answers

Answered by shilpa85475
0

Stack is nothing but a data structure in language. Stack is used to holding data that are in terms of Last in First Out or First In Last Out. For eg. , if we say, there is a bottle that consists of some medium-sized balls then the first entered ball will be the last coming out, because the other balls that enter after him will be getting out first of him.

Suppose Mrs Vaishali wants to arrange objects in one bottle or container she will add the least useful object in the last so that when it is needed she will have to remove first all the other objects ahead on it. Similarly, the one which she needs the most she will place it on the top so it can be accessed first.

Similar questions