Concept Flow - Check if Stack is Empty or Full
Start
Check if top == -1?
Yes→Stack is Empty
|No
Check if top == capacity-1?
Yes→Stack is Full
|No
Stack is Neither Empty Nor Full
End
The flow checks the top pointer of the stack to decide if it is empty (top == -1) or full (top == capacity-1).
