Queue

  • Queues can be implemented with either an array or a linked list (with tail pointer)
  • Each queue takes O(1): Enqueue, Dequeue, Empty
  • FIFO (First In First Out)

Operations

  • Enqueue(Key): adds key to collection
  • Key Dequeue(): removes and returns least recently added key
  • Boolean Empty(): returns a boolean if elements exist or not

Taeyang Lee

Taeyang Lee
I really enjoy taking on tasks which are out of my comfort zone and using them as a great way to learn the necessary tools to complete it.

Monads

Published on December 17, 2018

Functors

Published on December 16, 2018