COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Suppose you have the following series of queue operations.q = Queue();q.enqueue(’hello’);q.enqueue(’dog’);q.enqueue(3);q.dequeue();What items are left on the queue?
|
‘hello’, ‘dog’
|
|
‘dog’, 3
|
|
‘hello’, 3
|
|
‘hello’, ‘dog’, 3
|
Explanation:
There is 1 question to complete.