Consider the following operation along wit he queue and dequeue operation on queue,where k is global parameter
multidequeue(q)
{
m=k
while(q is not empty and m>o)
{
dequeue(q)
m=m-1
}}
worst time complexity of a sequence of n multidequeue() operations on initially empty queue
A)theta(n)
b)theta(n+k)
c)theta(n^2)
d)theta(nk)