Wednesday 22 June 2016

What operations can be performed on Queues?

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

No comments:

Post a Comment