LIFO - Last In First Out.
Push - Add item to top.
Pop - Remove item from top.
Stack Pointer - Top node of the stack.
While Push,check for Whether stack is full (Stack Overflow) or not.
While Pop,check for whether stack is empty (Stack Underflow) or not.
Push - Add item to top.
Pop - Remove item from top.
Stack Pointer - Top node of the stack.
While Push,check for Whether stack is full (Stack Overflow) or not.
While Pop,check for whether stack is empty (Stack Underflow) or not.
No comments:
Post a Comment