CSD201_-_SU_2023_-_Block_5_-_RE_759.webp
Vân Anh1

CSD201_-_SU_2023_-_Block_5_-_RE_759.webp

Consider the following pseudocode:
(Choose 1 answer)
circular array of size 6.while(there are more characters in the word to read)
declare a queue of characters, which is implemented by
{read a character
}
if a character is '*' then
dequeue the queue
else
enqueue the character into the queue
How the queue looks like after processing the input "Hello***Worl***d*"?
A. (4)
B. (3)
C. (1)
D. (2)


0
1
2
3
4
5
(1)
I
0
1
2
3
4
5
(2)
r
0
(3)
1
2
3
4
5
(4)
0
1
2
3
4
5
Exit 6

Thông tin

Category
CSD201
Thêm bởi
Vân Anh1
Ngày thêm
Lượt xem
2,713
Lượt bình luận
27
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_SU_2023_-_Block_5_-_RE_759.webp
File size
60.4 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom