The Array below is used as a Queue data structure:
[5,11,8,3]
Which indexes and values are affected by the endueue and dedueue operations?
enqueue(7):
value 7 is placed on
index @(1) in the array.
dequeue():
value @(1) is taken
out of the queue.
enqueue(7):
value 7 is placed on
index 4 in the array.
dequeue():
value 5 is taken
out of the queue.