Doubt in the question?

Sir, can you tell me what do I have to do in the question. Do I have to make a queue with the complexity of functions similar to that of a deque or I have to make a deque?

hello @vageesha

u need to frame algorithm that takes less time to dequeue compared to enqueu.
i,e design algorithm such that dequeue Takes O(1) and enque takes O(N)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.