week 7

Cards (12)

  • Queue follows the First In First Out (FIFO) rule - the item that goes in first is the item that comes out first.
  • Enqueue - putting items in the queue
  • Dequeue - removing items from the queue
  • Enqueu - add an element to the end of the queue
  • Dequeue - remove an element from the front of the queue
  • IsEmpty - check if the queue is empty
  • IsFull - check if the queue is full
  • Peek - get the value of the front of the queue without removing it
  • Priority Queue For letters: Alphabetical order
  • adding elemets:
    1. add()
    2. offer()
  • removing elements-
    1. remove()
    2. poll()
  • acessing Elements -
    1. element()
    2. peek()