Stack Data Structure Tutorial. How to implement a stack from scratch?
Today we will be diving into a data structure called Stack.
Let's imagine you're placing plates on a counter. How would you access the last bowl? To be fair, You can lift everything and take the last one out but if you do it like this: you take the top most bowl and put it aside, then you take the top most bowl again and put it aside, and you keep doing this until the last bowl - then you can say that that is a stack!
Another example are undo/redo operations. Everything you do gets stored inside a stack and when you want to undo that, last thing you did is on the top of the stack waiting for you.
Stack is a linear data structure which follows a particular order in which the operations are performed. The order is often called LIFO - last in first out!
Instagram: instagram.com/javacodingcommunity/
Github: github.com/javacodingcommunity
On this page of the site you can watch the video online Stack Tutorial | How to implement a Stack from Scratch with a duration of hours minute second in good quality, which was uploaded by the user Java Coding Community 09 December 2020, share the link with friends and acquaintances, this video has already been watched 1,316 times on youtube and it was liked by 19 viewers. Enjoy your viewing!