Stacks and Queues

Stacks and Queues

About Stacks

About Queues

Challenge

Define pop, push, peak and isempty for stack and enqueue, dequeue, peak and isempty for queue.

Approach & Efficiency

API

Common terminology for a stack is

  1. FILO: First In Last Out
  2. Lifo: This means that the first item added in the stack will be the last item popped out of the stack.

Note:

WhiteBoards

Pseudo Queue
PseudoQueue

Animal Shelter
Animal_Shelter

multi bracket validation multi_bracket_validation