subject

The input stream of a stack is a list of all the elements we pushed onto the stack, in the order that we pushed them. The input stream is ABCDEFGHIJKLM.
The output stream is a list of all the elements that are popped off the stack, in the order that they are popped off.
a. What is the output stream of ABCDEFGHIJKLM?
b. If the input stream is ZYXWVUTSR, create a sequence of pushes and pops such that the output stream is YXVUWZSRT.
c. If the input stream is ZYXW, how many different output streams can be created?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
You know the right answer?
The input stream of a stack is a list of all the elements we pushed onto the stack, in the order tha...
Questions
question
Mathematics, 27.06.2019 07:20
Questions on the website: 13722361