My Journey to Learning Data Structures from Scratch — Queue

This is Day 5 of #100DaysOfDSA — Queue Data Structure

Prakhar Mishra
1 min readDec 5, 2020
Source

In the last post, we have already seen some theory and basic operations on Queue. In this post, We will focus on problem statements, solutions for which i have already put in the GitHub Repository. Feel free to check it out!

Problem 1— Implement Queue using Linked List

Implement a Queue using Linked List data structure. — Solution

Problem 2 — Implement Stack using 2 Queues

Implement a Stack using Queue data structure. — Solution

Problem 3— Reverse a Queue

Reverse a given Queue using Recursion. Solution

Problem 4— Reverse First-K Elements of Queue

Reverse first-k elements of a Queue using Recursion. — Solution

Also, if you are also into Machine Learning/Natural Language Processing, etc domain, just like me. Make sure to check out detailed Research Paper Walkthroughs on my YT channel.

Cheers!

--

--