Stack Tutorial | How to implement a Stack from Scratch

Published: 09 December 2020
on channel: Java Coding Community
1,316
19

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


Watch video Stack Tutorial | How to implement a Stack from Scratch online without registration, duration hours minute second in high quality. This video was added by user Java Coding Community 09 December 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,31 once and liked it 1 people.