0% found this document useful (0 votes)
3 views1 page

Stack and Queue Operations Guide

Uploaded by

urboyiszkandar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Stack and Queue Operations Guide

Uploaded by

urboyiszkandar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PUSH

Start
IF Stack isEmpty,
THEN PUSH Top = -1,
ELSE Stack isFull,
THEN Display Overflow.
End

POP

Start
IF Stack isFull,
THEN POP Top = -1,
ELSE Stack isEmpty,
THEN Display Underflow.
End

ENQUEUE

Start
IF Queue isEmpty,
THEN ENQUEUE rear = -1,
ELSE QUEUE isFull,
THEN Display Queue Overflow.
End

DEQUEUE

Start
IF Queue isFull,
THEN POP front = -1,
ELSE Queue isEmpty,
THEN Display Queue Underflow.
End

You might also like