30 likes | 329 Views
What is STACK?. Stack is a Data Structure. It follows the Concept of LIFO. LIFO is “Last In First Out”. It means the element that inserted at the end will be taken out at the first. In , Stack elements are added only from the Top. In , Stack elements can be deleted only from the TOP.
E N D
What is STACK? • Stack is a Data Structure. • It follows the Concept of LIFO. • LIFO is “Last In First Out”. • It means the element that inserted at the end will be taken out at the first. • In , Stack elements are added only from the Top. • In , Stack elements can be deleted only from the TOP.
Types of STACK Linear Stack Double Ended Stack Linked Stack Implemented Using Implemented Using Linked List Array
LINEAR STACK Linear Stack is Implemented using “ARRAY”. It means we’ll use an array like a Stack. As we know , we can insert (add) ,delete an element from an array from anywhere. But ,In STACK : Element can be inserted from the Top and Can be deleted only from the Top. Very Important Term “TOP”