Skip to content

Commit

Permalink
Update article.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dujue55 authored Oct 20, 2024
1 parent 431d111 commit c6c05c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 2024/stack-queue/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- END TITLE -->


<img src="./illustration.png" style="width: 50%;">


<!-- BEGIN BODY -->
Imagine in a supermarket. When restocking, The employee usually places new items at the front of the existing ones. Customers typically take items from the outermost position. In this way, the most recently added products are the first to be purchased. In computer science, this is called **'stacks'** , following the "Last In, First Out" (LIFO) principle.
Expand All @@ -12,6 +12,7 @@ Customers waiting to pay for their groceries form a line, where the first custom

Programmers do this as well, queues and stacks are simple yet powerful tools in the their toolkit. They help organize data efficiently, ensuring that tasks are handled either in the order they arrive (queues) or in reverse order of their addition (stacks).
<!-- END BODY -->
<img src="./illustration.png" style="width: 50%;">

## Author
<!-- BEGIN AUTHOR -->
Expand Down

0 comments on commit c6c05c1

Please sign in to comment.