Stacks By Array
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This folder consist of four main files one is main file in which you can enjoy Stack programs , next one is of class file in which stack class is defined , other one is of function which consist of functions of Stack, and an additional file which consist information about this folder is there which you are reading currently, if you found any problem in this folder please feel free to commit changes
Stack here is implemented as per the method taught in our DSA Theortical Subject
For more detail that how this stack is implemented go through the pdf shared in the Stacks folder.
Some important detail about this folder is given below :-
1. Stack here is implemented Array using OOPS .
2. To indicate NULL in Stack , we used either INT_MIN or -1 which indicate the bottom of the stack.
INT_MIN is used when we want to access the value of top element under underflow condition
Also -1 is used to check underflow conditions in several functions.
3. The starting index of array is considered as the bottom side of the stack .
4. Insertion and deletion functions takes place from end side of the array .
5. Please run the program for stacks in mainProgram.cpp , implement the functions of the stack as specified in the FunctionsOfStack.cpp