subject

Below in the double quotes are some word strings: "The " ---1
"itsy" ---2
"bitsy" ---3
"spider" ---4
We are going to store and retrieve those strings in stack and queue structure, respectively, in certain operation sequence. * Operation X represents a retrieval (i. e., not just looking at it with peek(), but also remove one). For example, the operation sequence 23X1 means doing the following operations step by step:
store string 2
store string 3
retrieve a string
store string 1
So, the result in stack structure is: itsy The front bitsy The top rear The result in queue structure is:
1. Fill in the boxes below to show what's in the data structure after each operation sequence (assuming that the beginning data structure is always empty for each sequence): 12X34 In stack structure: Click or tap here to enter text. In queue structure: front Click or tap here to enter text. 1X2X3X4 In stack structure: Click or tap here to enter text. In queue structure: front Click or tap here to enter text. 2x3x4X1X In stack structure: Click or tap here to enter text. In queue structure: front Click or tap here to enter text.
2. Also, you are to write a short program that utilizes the available java frameworks/classes (or your own custom stack & queue implementations) to show the results as program output.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
You know the right answer?
Below in the double quotes are some word strings: "The " ---1
"itsy" ---2
"bitsy" ---3...
Questions
question
Geography, 13.02.2021 03:30
question
Mathematics, 13.02.2021 03:30
question
English, 13.02.2021 03:30
question
Mathematics, 13.02.2021 03:30
question
English, 13.02.2021 03:30
question
Computers and Technology, 13.02.2021 03:30
Questions on the website: 13722367