Basic features of Stack: e.g.
Order list of similar data type
LIFO (Last in First out) or FILO (First in Last out)
Top operation (both insertion and deletion)
Overflow state: completely full & Underflow state: completely empty
Expression/Notations: Infix, Prefix, & Postfix
Analysis of Stack Operations: e.g.
Push Operation: O(1)
Pop Operation: O(1)
Top Operation: O(1)
Search Operation: O(n)
Applications for use of Stack: e.g.
Parsing
Expression/Notations conversion
Functional Calls
Deck of Cards
Pile of Plates
Note: Implementation via - Array
#Programming #Algorithm #CodeAnalysis #Stack #AbdurRahimRatulAliKhan