Data-structures and Algorithms using Python: Programming Series 101–2

  1. enqueue(): add elements to the queue.
  2. dequeue(): remove the elements from the queue.
  3. size(): get the number of elements in the queue.
  4. is_empty(): check if the queue is empty or not.
  5. front(): peek through the first element of the queue.
  6. back():peek through the last element of the queue.

--

--

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
anuragbisht

anuragbisht

BI & Analytics, Data Science, Data Engineering, Machine Learning, Deep Learning, Cloud Computing, Data Structures, Algorithms, GCP, AWS 2X Certified.