Coding Interview Preparation - Stack Implementation
For a recent preparation, I wanted to revisit the creation of a stack in Javascript and how we can do this, taking into consideration changing design aspects as well as efficiency.
Definition
A stack is a data structure in computer science that works according to the Last-in, First-out (LIFO) principle.