What are queues and stacks

  • Stacks refer to a list in which all items are accessed and processed on the Last-In-First-Out (LIFO) basis.
  • Queues refer to a list in which all items are accessed and processed on the First-In-First-Out (FIFO) basis.

results matching ""

    No results matching ""