+1 vote
in Data Structures & Algorithms I by (110k points)
Entries in a stack are “ordered”. What is the meaning of this statement?

(a) A collection of stacks is sortable

(b) Stack entries may be compared with the ‘<‘ operation

(c) The entries are stored in a linked list

(d) There is a Sequential entry that is one by one

This interesting question is from Stack Operations topic in division Abstract Data Types of Data Structures & Algorithms I

This question was posed to me during an internship interview.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
Correct answer is (d) There is a Sequential entry that is one by one

Easy explanation - In stack data structure, elements are added one by one using push operation. Stack follows LIFO Principle i.e. Last In First Out(LIFO).

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...