मराठी

Write an algorithm to implement deletion operation of queue.

Advertisements
Advertisements

प्रश्न

Write an algorithm to implement deletion operation of queue.

अति संक्षिप्त उत्तर
Advertisements

उत्तर

  1. Start.
  2. If front = -1, print Queue Empty and stop.
  3. Store queue[front] as the deleted item.
  4. If front = rear, set both to -1; otherwise increment front by 1.
  5. Print Item Deleted.
  6. Stop.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Stacks & Queues in list - EXERCISE [पृष्ठ १२३]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
पाठ 6 Stacks & Queues in list
EXERCISE | Q 23. | पृष्ठ १२३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×