मराठी

Write an algorithm to implement push operation.

Advertisements
Advertisements

प्रश्न

Write an algorithm to implement push operation.

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

उत्तर

  1. Start.
  2. Initialize top with -1.
  3. Input the new element.
  4. Increment top by 1.
  5. Store the element at stack[top].
  6. Print Item Inserted.
  7. 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 20. | पृष्ठ १२३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×