@@ -8,24 +8,26 @@ _Read this in other languages:_
8
8
[ _ Português_ ] ( README.pt-BR.md ) ,
9
9
[ _ 한국어_ ] ( README.ko-KR.md )
10
10
11
- In computer science, a ** stack** is an abstract data type that serves
11
+ In computer science, a ** stack** is an abstract data type that serves
12
12
as a collection of elements, with two principal operations:
13
13
14
14
* ** push** , which adds an element to the collection, and
15
15
* ** pop** , which removes the most recently added element that was not yet removed.
16
16
17
- The order in which elements come off a stack gives rise to its
18
- alternative name, LIFO (last in, first out). Additionally, a
19
- peek operation may give access to the top without modifying
20
- the stack. The name "stack" for this type of structure comes
21
- from the analogy to a set of physical items stacked on top of
22
- each other, which makes it easy to take an item off the top
23
- of the stack, while getting to an item deeper in the stack
17
+ The order in which elements come off a stack gives rise to its
18
+ alternative name, LIFO (last in, first out). Additionally, a
19
+ peek operation may give access to the top without modifying
20
+ the stack. The name "stack" for this type of structure comes
21
+ from the analogy to a set of physical items stacked on top of
22
+ each other, which makes it easy to take an item off the top
23
+ of the stack, while getting to an item deeper in the stack
24
24
may require taking off multiple other items first.
25
25
26
26
Simple representation of a stack runtime with push and pop operations.
27
27
28
- ![ Stack] ( https://upload.wikimedia.org/wikipedia/commons/b/b4/Lifo_stack.png )
28
+ ![ Stack] ( ./images/stack.jpeg )
29
+
30
+ * Made with [ okso.app] ( https://okso.app ) *
29
31
30
32
## References
31
33
0 commit comments