Differences Between Stacks And Lists
How does a stack differ from a list?
A
In a stack, elements are removed in the reverse order of their addition, whereas a list can contain elements of different data types.
B
Both a stack and a list are First In, First Out (FIFO) data structures.
C
Elements are only inserted or deleted at the top of a stack, and the order of the elements is fixed and cannot be changed.
D
A stack is a Last In, First Out (LIFO) data structure, whereas elements in a list can be ordered in various sequences.
Question Leaderboard
Not enough data yet to show leaderboard.
