adspace
What are the various operations performed on stack?
Answer Posted / Rohit Kumar Kushwaha
"The primary operations on a stack include:
1. Push: Adds an element onto the top of the stack
2. Pop: Removes the topmost element from the stack
3. Peek or Top: Returns the topmost element without removing it
4. Size: Determines the number of elements on the stack
5. IsEmpty: Checks if the stack is empty"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers