CBSE BOARD X, asked by yvanshika158, 1 month ago

व्हाट आर द ऑब्जेक्टिव ऑफ मोरल एजुकेशन ​

Answers

Answered by υէïε
3

Answer:

Given an integer k and a queue of integers, we need to reverse the order of the first k elements of the queue, leaving the other elements in the same relative order.

Only following standard operations are allowed on queue.  

  1. enqueue(x) : Add an item x to rear of queue
  2. dequeue() : Remove an item from front of queue
  3. size() : Returns number of elements in queue.
  4. front() : Finds front item.
Similar questions