Photo by Tine Ivanič on Unsplash

What is recursion?


Photo by Pierre Binet on Unsplash

What is a Stack?

Photo by Johnson Wang on Unsplash

What is a stack?

Photo by Artem Sapegin on Unsplash


Photo by Eaters Collective on Unsplash

What is the call stack?

  1. When the script calls a function, it is added to a call…

Photo by Melanie Pongratz on Unsplash


  1. enqueue() — Adds an element to the queue
  2. dequeue() — Removes and returns the first item entered in the queue
  3. isEmpty() — Returns true or false based on if the queue is empty or not
  4. front() — Returns the front element of the queue
  5. print() — Returns all the elements of the queue

Photo by Adrien Delforge on Unsplash

The basics


Megh Agarwal

Incoming freshman at the University of Toronto. Founder, developer, designer of Pustakdaan. Experienced web developer. Interested in research (AI, ML).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store