The below operations can be performed on a stack −
enqueue() − adds an item to rear of the queue
dequeue() − removes the item from front of the queue
peek() − gives value of front item without removing it
isempty() − checks if stack is empty
isfull() − checks if stack is full
Your experience on this site will be improved by allowing cookies. Read Cookie Policy