Booking Queue/queue.rb
# Removes the front element from the queue
Removes the front element from the queue
Removes the front element from the queue
def dequeue
    return nil unless self.size.positive?
    data = self.front.data
    self.front = front.next
    self.back = nil if self.size == 1
    self.size -= 1
    return data
  end
def dequeue return nil unless self . size . positive? data = self . front . data self . front = front . next self . back = nil if self . size == 1 self . size -= 1 return data end
Removes the front element from the queue
Removes the front element from the queue