Question: 24 - If we perform the following sequence: insertRear(5), insertRear(10), insertRear(15), delete Fronto, deleteRear(). insertFront(20), insertRear(1), deleteFronto), insertRear(15). What is the front and rear index

24 - If we perform the following sequence: insertRear(5), insertRear(10), insertRear(15), delete Fronto, deleteRear(). insertFront(20), insertRear(1), deleteFronto), insertRear(15). What is the front and rear index positions in the array implementation of Double-ended Queue? (Initial front and rear indexes are -1) a) front:0, rear: 3 b) front: 1, rear: 6 c) front: 3, rear: 6 d) front: 1, rear: 3 Bo brak
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
