Рет қаралды 29,205
What is Stack data structure, Full concept explanation along with pseudo code.A stack is an abstract data type (ADT), that serves as a collection of elements, with two main principal operations: Push and Pop. Push operation used to insert data inside a stack whereas pop operation used to remove element from top of the stack. Stack is a LIFO data structure, LIFO means Last In First Out.
In this video I have explained stack data structure concept with a very simple example which is very easy for everyone to understand. Examples used pile of plates, bangles and chairs.
Tricky interview question using stack DS.
1) • Check whether brackets...
2) Max element in stack : • Maximum element in a S...