Implement Stack using Queues | Explained, Visualized and Implemented | Geekific

preview_player
Показать описание

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 Stack data structure while making use of the built-in Queue classes and functionalities in Java.

LeetCode Problems solved in this video:

Timestamps:
00:00 Introduction
00:07 Explanation and Visualization
02:16 Implementation and Testing
03:45 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #CodingInteview #QueueUsingStacks #LeetCode #Java #Google #Amazon #Meta #Microsoft #Apple #Netflix
Рекомендации по теме
Комментарии
Автор

2:20
btw, Deque<T> is redundant. Queue<T> is sufficient😉

[Informational note] Dealing with dequeue: for Deque<T> interface java docs recommend class ArrayDequeue<T> as implementation.

manOfPlanetEarth
Автор

Hey mate, any chance of implementing a GUI view for tree structures? I'd really appreciate it

rafaeloliveiradossantos
Автор

Yuhuuu🎉🥳🥳 Some new nice and neat knowledge!🎉
What a day!🎉

manOfPlanetEarth
Автор

Hi bro long time no see.

Was waiting for this vid. Thx..

Btw which company u work 4?

savita
Автор

Awesome tutorial! Uhm, is everything alright with the audio ? Feels like a robotic voice .

arthasmenethil
Автор

Thanks to Geekific - useful and lively channel🎉🥳

manOfPlanetEarth
join shbcf.ru