Stack Data Structure

Tes Gam 81 Reputation points

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?!

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,206 questions
0 comments No comments
{count} votes

Accepted answer
  1. YASER SHADMEHR 781 Reputation points

    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