In a queue with elements c,b,a , where c is in front and a in the rear.
If we perform enqueue(d), then how does the queue look like?
either option 1 or option 2, we can't say
none of the above
a new element when added to a normal queue, then it will get added after last element. in the given example a is last person in the queue, so d will be added after a.
Back To Top