व्हाट आर द ऑब्जेक्टिव ऑफ मोरल एजुकेशन
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.
- enqueue(x) : Add an item x to rear of queue
- dequeue() : Remove an item from front of queue
- size() : Returns number of elements in queue.
- front() : Finds front item.
Similar questions