In this video we will learn what is a Stack and what are different operations that we can perform in Stack. We then write the code to implement it in Java.
We also write the program parenthesis checker which uses Stack to check if brackets are balanced.
00:00 What is a stack
00:32 Different Operations on Stack
00.54 What is overflow in Stack
01:21 What is underflow in Stack
05:02 Defining class for Stack
05:27 Implementing parameterized Constructor
06:00 Implementing default Constructor
06:21 Implementing push() operation in Stack
07:13 Implementing pop() operation in Stack
07:57 Implementing peek() operation in Stack
08:36 Implementing isEmpty() operation in Stack
08:57 Implementing display() operation in Stack
09:43 Implementing Parenthesis Checker using Stack