From c6c05c126787293b564f6f5f73dd58a941358171 Mon Sep 17 00:00:00 2001 From: dujue55 <37645985+dujue55@users.noreply.github.com> Date: Sun, 20 Oct 2024 14:59:12 +0200 Subject: [PATCH] Update article.md --- 2024/stack-queue/article.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2024/stack-queue/article.md b/2024/stack-queue/article.md index 57ed3b7f..ac376570 100644 --- a/2024/stack-queue/article.md +++ b/2024/stack-queue/article.md @@ -3,7 +3,7 @@ - + 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. @@ -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). + ## Author