Stack Data Structure

Tes Gam 81 Reputation points
2020-12-20T03:43:36.9+00:00

I got the difference between queue and stack, but my question is do we really need stack in real life? Except computer algorithms, when LIFO will come handy?!

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,649 questions
0 comments No comments
{count} votes

Accepted answer
  1. YASER SHADMEHR 781 Reputation points
    2020-12-20T03:46:54.787+00:00

    Nice question. Sure, think about driveway(LIFO) vs street(FIFO), put the items in the cabinet with one row (LIFO). ![49802-image.png][1] [1]: /api/attachments/49802-image.png?platform=QnA

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful