Friday, 21 June 2019

Deleting Data in Queue

Deleting Data in Queue



Step1: Start
Step2: If Front=Null then
                   Print “underflow”
Step3: set Q[Front]=item
Step4: If Front=Rear then
                   Set Front =Null & Rear=Null
                   Else-If Front= N then
                   Front=Front+1
Step5: End

No comments:

Post a Comment