Concept Flow - Check if Stack is Empty or Full
Start
Check if top == -1?
Yes→Stack is Empty
|No
Check if top == max_size - 1?
Yes→Stack is Full
|No
Stack has space
End
The flow checks the top pointer to decide if the stack is empty or full before any push or pop operation.
