Computing - Stacks

2020-10-23
1 min read
Is a stack FIFO or LIFO??

LIFO.

Where do you remove items from the stack??

From the top.

What does LIFO stand for??

Last-in First-out

What does the Pop operation do to a stack??

Returns and removes the item at the top of the stack.

What does the Top operation do to a stack??

Returns but doesn’t remove the top item of the stack.

What does the Push operation do to a stack??

Puts a new item of the top of a stack.


Metadata
date: 2020-10-23 12:37
tags:
- '@?computing'
- '@?public'
- '@?fundementals-of-data-structures'
title: Computing - Stacks