algoritmauzmanı
Sign in
TREN
Term

Stack underflow

Trying to pop or peek an empty stack. Both implementations check for emptiness before the operation.