Stack: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
A '''stack''' is a dynamic set in which the the [[Data Structures#DELETE|DELETE]] operation, which does not have any argument, removes the most recently inserted element. The stack has a ''last-in-first-out'', or LIFO policy. | A '''stack''' is a dynamic set in which the the [[Data Structures#DELETE|DELETE]] operation, which does not have any argument, removes the most recently inserted element. The stack has a ''last-in-first-out'', or LIFO policy. Also see [[Queue#Overview|Queue]]. |