1.

What operations can be performed on stacks?

Answer»

The below operations can be performed on a stack −

  • push() − adds an item to stack

  • pop() − removes the top stack item

  • peek() − gives value of top item without removing it

  • isempty() − checks if stack is empty

  • isfull() − checks if stack is full



Discussion

No Comment Found