Computer Science, asked by likhithapotnuru, 1 month ago

while (starting from i-1 execute N times with increment of 1){
push i to the queue
if(i is multiple of 2){
peek it from the queue
}
if(i is multiple of 3){
poll it from the queue
}
}

what will be the size of the queue after execution of the following with N=10?

Options
A) 3
B) 2
C) 7
D) 5​

Answers

Answered by jhaom2877
3

Answer:

7 because it tell about n and it is also a queue

Answered by pavanadevassy
0

Answer:

Ans: 8 (option given is wrong)

Explanation:

#SPJ3

Attachments:
Similar questions