Tech
LLD Data Structures in Design Context: Stack — Understanding Last In, First Out Through Design
"A Stack isn't designed to store data. It's designed to make the most recent piece of work the easiest to access."
In the previous article, we discovered a new kind of design problem.
Some systems don't need to find the fastest item.
Some don't need to process tasks in arrival order.
Instead, they need to work with whatever happened most recently .
That's exactly the problem a Stack solves.
In this article, we'll understand how a Stack works and why its behavior appears natu...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to