A queue consists of the numbers [1, 19, 42]. The maximum capacity of the queue is 5. Currently, front = 0, rear = 3, and
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A queue consists of the numbers [1, 19, 42]. The maximum capacity of the queue is 5. Currently, front = 0, rear = 3, and
A queue consists of the numbers [1, 19, 42]. The maximum capacity of the queue is 5. Currently, front = 0, rear = 3, and currentSize = 3. Then, enqueue(27) adds the number 27 to index type your answer... After the enqueue, front = type your answer... rear = type your answer... and currentSize= type your answer...
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!