🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Tim Boon Thu, 20 Nov 1997 00:00
help
#54
Author: Tim Boon
Date: Thu, 20 Nov 1997 00:00
20 lines
1270 bytes
I have just done 17 questions on stacks and I can't do these three, there in
for the 21 November so could you please help me,
1)Given that an input stream ABCDE which of the following are possible
output streams?
a) ACEDB
b) BCEAD
c)CBAED
d)EACBD
for possible output streamsshow, using the instruction PUSH and POP, how
they can be obtained.
2)A stack is being implimented in an array of 10 elements.  Using pseudocode
algorithms show how a data element is:
i)added to the stack.
ii) removed from the stack
3) Explain how the elements is a non-empty queue may be reserved with the
aid of a stack.

Thankyou very much, please help and if you have email it back to me at
TimBoon@netcomuk.co.uk
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads