Stack Data Structure

 

STACK DATA STRUCTURE



 


This diagram shows a stack. It just like a box. It has one open end. We can do three operations with stack data structure.

 

       i.          Input / push

     ii.          Remove / pop

    iii.          See most upper element ( peek / top )

 

 

This stack data structure also called as “ Last In First Out ” structure. Because user can see the most upper element first. The element which entered first, can see in last.

 



 

 

Comments

Popular posts from this blog

Insertion Sort - Time Complexity

Selection Sort - Time Complextity

Quick Sort - Time Complexity