a) front-4 rear=8

b) front=10 rear=3

c) front=5 rear =6 then two elements are deleted

A) FRONT=4 REAR=8 NO. OF ELEMNET=8-4+1=5

123456789101112
   ABCDE    
Text Box: FRONTT
Text Box: REAR

B) FRONT=10 REAR=3

123456789101112
DEE      ABC
Text Box: REAR
Text Box: FRONTT

C) FRONT=5 REAR=6

123456789101112
    AB      
Text Box: FRONTT
Text Box: REAR

AFTER DELETION OF TWO ELEMENTS IN THE QUEUE=0

Leave a Reply

Your email address will not be published. Required fields are marked *