Implement Queue Using Stacks | Explained & Visualized

Learn how to implement a queue with stacks, with clear explanations, visuals, and code examples. Join our Discord community! πŸš€

Implement Queue Using Stacks | Explained & Visualized
Geekific
2.7K views β€’ Dec 17, 2022
Implement Queue Using Stacks | Explained & Visualized

About this video

Discord Community: https://discord.gg/dK6cB24ATp
GitHub Repository: https://github.com/geekific-official/

Most, if not all of the programming languages you might use during an interview are object oriented. And to see if you are familiar with data structures in OOP, the interviewer might ask you to actually design and implement a data structure from scratch, it could be a LinkedList, a stack, a queue, a map etc. We previously explained and implemented several data structures in our data-structure-series; in this video, we implement the Queue data structure while making use of the built-in Stack classes and functionalities in Java.

LeetCode Problems solved in this video:
- https://leetcode.com/problems/implement-queue-using-stacks/

Timestamps:
00:00 Introduction
00:34 Explanation and Visualization
02:35 Implementation and Testing
03:57 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: https://youtu.be/Vfk6sExu8-4
- SOLID Principles and Best Practices: https://youtu.be/HoA6aZPR5K0
- Recursion Made Simple, Recursive Methods: https://youtu.be/r8KJ2AJWkHs
- Use-Case and Sequence Diagrams: https://youtu.be/el501qi0KtI
- Introduction to Dynamic Programming: https://youtu.be/IjpoE28Ii34
- Graphs, The Fundamentals: https://youtu.be/UUuFT5K6zrI
- Trees Compared and Visualized, BST vs AVL vs RedBlack vs Splay vs Heaps: https://youtu.be/hmSFuM2Tglw
- Generics and Wildcards in Java, Invariance vs Covariance vs Contravariance: https://youtu.be/FXAUXvPNKi8
- Reading from and Writing to a file in Java, Transient Java Keyword: https://youtu.be/_hN-m7qOn9Y
- What is a Thread? (Process, Program, Parallelism, Scheduler Explained): https://youtu.be/hN2Yrf4tqTY
- Domain-Driven Design Made Simple: https://youtu.be/H5--9pMmuK4

#Geekific #CodingInteview #QueueUsingStacks #LeetCode #Java #Google #Amazon #Meta #Microsoft #Apple #Netflix

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

2.7K

Likes

50

Duration

4:07

Published

Dec 17, 2022

User Reviews

4.5
(2)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.