मराठी

Write an algorithm to implement insertion operation of queue.

Advertisements
Advertisements

प्रश्न

Write an algorithm to implement insertion operation of queue.

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

उत्तर

  1. Start.
  2. If both front and rear are -1, increment both by 1; otherwise increment rear by 1.
  3. Store the new element at queue[rear].
  4. Print Item Inserted.
  5. 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 22. | पृष्ठ १२३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×