11,579 questions
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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?!
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