Introduction to Stacks and Queues (Data Structures & Algorithms #12)

  Рет қаралды 268,328

CS Dojo

CS Dojo

Күн бұрын

Here's my introduction to stacks, queues, and deques (double-ended queues)!
You can check out the problem I mentioned at the end of the video here: www.algoexpert.io/csdojo (it's a referral link)
And you should join our community here if you haven't yet: www.csdojo.io/community

Пікірлер: 204
@thesheepthemightythecrazy
@thesheepthemightythecrazy 3 жыл бұрын
KZbin really should recommend this channel to more young ppl.
@joeljose182
@joeljose182 3 жыл бұрын
Thats not their policy yet
@redlightg27
@redlightg27 3 жыл бұрын
@@webdevinterviewtrainingusa1494 Liar. All you have are food videos. What's wrong with you?
@benjamintombendickwilliams1369
@benjamintombendickwilliams1369 3 жыл бұрын
Could not agree more. YK is a real teacher talent! Recommended!
@kamilguchowski2793
@kamilguchowski2793 3 жыл бұрын
I'm 13 and I watch it
@trebestorkoleckando7609
@trebestorkoleckando7609 2 жыл бұрын
@@kamilguchowski2793 and
@abdullahbukhari1469
@abdullahbukhari1469 3 жыл бұрын
Love you brother, the best ex-Google/Facebook employee on KZbin
@virathshuklla172
@virathshuklla172 3 жыл бұрын
I was waiting for this video for a lot of time. This channel is best for Python I highly recommend it to my friends. Great Y.K.
@GhostVaibhav
@GhostVaibhav 3 жыл бұрын
Bro, you just nailed the explanation part!!! Keep up the good work!!❤️❤️
@nick_jacob
@nick_jacob Жыл бұрын
Very easy to understand. Would like to see some coding examples too but this is nice. I have been a developer for 6 years and i'm just now getting into data structures. However i'm realizing that i've basically been using them all along without knowing it.
@elijohn8114
@elijohn8114 Жыл бұрын
i use this channel and codebeauty. this one gives me an awsome overview whille codebeauty explains it with coding she uses c++
@lancepaulino1303
@lancepaulino1303 3 жыл бұрын
Imagine if your professor teaches like this and add up those simple analogies so their students will have an easier approach to grasp the lesson at hand..... anyways, thank you so much for your precious videos!
@GauthamMohanraj
@GauthamMohanraj 3 жыл бұрын
I have loved the quarantine life learning programming 24*7
@sirxavior1583
@sirxavior1583 2 жыл бұрын
Great video..you got it right a Deque is actually called a "Deck" or Double Ended Queue so many people get it wrong an call it a "De Que" then get it confused with Enque/Deque.
@manuelelkess8259
@manuelelkess8259 3 жыл бұрын
your videos help me a lot thank you and please continue this course until the very end
@maxxpellowski2916
@maxxpellowski2916 2 жыл бұрын
Another great video YK, thank you. I may not know much about data structures, but I know pancakes and you really break it down wonderfully. 🤣
@unitydeveloperkgk9836
@unitydeveloperkgk9836 Жыл бұрын
These videos are great and the visuals help a lot. The black background in your videos seems to improve memory recall for some reason as opposed to a white background. Its easier to visualize what I saw from your videos, than others because of this and it does not burn your retinas out while watching them either lol.
@NikhilKumar-fj2dg
@NikhilKumar-fj2dg 3 жыл бұрын
This is what I'm waiting for Thankyou so much 🔥👍🙏
@udaysinh
@udaysinh 3 жыл бұрын
It is really nice to learn this at age of 15 and good explanation...thank you
@prathamesh_b
@prathamesh_b 3 жыл бұрын
@CS Dojo Thankyou Sir for guiding us!
@azimmirzoev6704
@azimmirzoev6704 3 жыл бұрын
I am CS student, and I have been following your channel for almost 2 years. It's a great explanation, but it would be more useful and more interesting if you could also show your explanation in code! Anyways thank you for your efforts!
@eyalpery8470
@eyalpery8470 2 жыл бұрын
"This is how pancakes in the real world work" Legendary!
@mandre2390
@mandre2390 Жыл бұрын
I was just stuck on that problem at the end, thanks!
@sairajpatil7652
@sairajpatil7652 3 жыл бұрын
I have watched almost all of your videos they are very helpful. Can you start a series on JavaScript . Love your videos bro
@CSDojo
@CSDojo 3 жыл бұрын
Not sure if I can do an entire series, but I'm thinking of making a Chrome extension with JS at some point. Thanks for letting me know your thoughts anyway!
@margaritashielatimbal638
@margaritashielatimbal638 3 жыл бұрын
I just had a quiz on this subject and our topic was stack. This video was really helpful. Hopefully, you'll make a series about C or C++
@CarlC9898
@CarlC9898 2 жыл бұрын
Hi Margarita ;)
@gayatrit3149
@gayatrit3149 3 жыл бұрын
I thought you stopped making videos, thank god your back , have learnt a lot from you , Thanks a lot !!!!!
@DarthVader-wm6tf
@DarthVader-wm6tf 3 жыл бұрын
Yeah ... You're back ... Horrah .. so happy you're back ... Cheers for yk
@itsd3br33
@itsd3br33 Жыл бұрын
Brilliant explanation, thank you
@Alex-bc3tt
@Alex-bc3tt 3 жыл бұрын
I liked the video just after playing it... and when I was done I wished I could like it again... thanks for the great content you never disappoint
@user-oh2ee8qv2c
@user-oh2ee8qv2c 3 жыл бұрын
感谢你的分享,让我学习了很多知识,谢谢。
@ErenYeager-lu5cu
@ErenYeager-lu5cu 2 жыл бұрын
understood nothing, but liking it anyway
@shubhambhardwaj8894
@shubhambhardwaj8894 3 жыл бұрын
Awesome explanation ❤
@garvitpahwa2349
@garvitpahwa2349 3 жыл бұрын
You are the best pls keep uploading. Love from India
@CSDojo
@CSDojo 3 жыл бұрын
Yes I will!
@sahelijati5851
@sahelijati5851 3 жыл бұрын
finally found a good programming teacher..
@selvalakshmis.v4232
@selvalakshmis.v4232 3 жыл бұрын
This video is really helpful for me Thank you.
@davdeveloper
@davdeveloper 7 ай бұрын
You are very good at explaining stuff. It would have great if we could watch at some code example as well, simple ones.
@jagbetuyi001
@jagbetuyi001 Жыл бұрын
That octopus looks real busy. Good work explaining this.
@lucyledezma709
@lucyledezma709 3 жыл бұрын
Hello Cs Dojo!!!. So much time again!!!
@CSDojo
@CSDojo 3 жыл бұрын
Hello, and sorry! I'll be faster :)
@Elif-ti9wf
@Elif-ti9wf 3 жыл бұрын
Aaaaah this week I took the first lesson of the data structures course at school thank you 🤗
@list9016
@list9016 2 жыл бұрын
else if
@BATMAN10N
@BATMAN10N 3 жыл бұрын
Phew....I finally understood the gibberish my class was teaching
@shashankkr1008
@shashankkr1008 3 жыл бұрын
Great explanation 👏👏👏
@zarrinnahid448
@zarrinnahid448 2 жыл бұрын
Thank you so much, these vedios are very helpful 🌸🌸🌸
@bjarneStroustrup350
@bjarneStroustrup350 3 жыл бұрын
Best explanation for DS❤️😘🇮🇳
@NaveenKumar-uq6zd
@NaveenKumar-uq6zd 3 жыл бұрын
Thanks for teaching us!!
@milnueve89
@milnueve89 3 жыл бұрын
Thanks, man. This is extremely illustrative and helpful! Your illustrations make it clear. You're a true teacher. Please, keep doing it! PS: I don't know what the heck an octopus was doing there, but I like it.
@rupalipadhy6549
@rupalipadhy6549 3 жыл бұрын
Love you from india🇮🇳🇮🇳. You are doing great job👍👍👍
@minimalinput6456
@minimalinput6456 Жыл бұрын
Thanks a lot this was extremely helpful
@jamezjaz
@jamezjaz 3 жыл бұрын
Amazing, I just subscribed!
@Mememeep
@Mememeep 2 жыл бұрын
thanks! that's so easy to understand!
@leonardourbanavicius
@leonardourbanavicius 3 жыл бұрын
I did a twitter bot with your video and stayed very happy!!! Hope this bot I made can help people to be happier, it spreads positive messages! thanks again!
@CSDojo
@CSDojo 3 жыл бұрын
That sounds great! Thank you for letting me know :)
@lordmoriartea7799
@lordmoriartea7799 3 жыл бұрын
can u share what vedios did u use
@souhardya69
@souhardya69 3 жыл бұрын
After a long wait.. Welcome back
@CSDojo
@CSDojo 3 жыл бұрын
Sorry for the wait! I'll try to be faster in the future.
@jeppirukun2546
@jeppirukun2546 3 жыл бұрын
I really struggle on my studies on Computer Science, and I still want it to become successful in this path. Please help me sensei.
@emanuelriquelmemontoya3819
@emanuelriquelmemontoya3819 3 жыл бұрын
keep learning for a few decades that is the only way of becoming good at something
@sihyunpark6245
@sihyunpark6245 2 жыл бұрын
@@emanuelriquelmemontoya3819 Though you are right, if it doesn't come naturally to you even when taught over and over then you should consider choosing a different path, not everyone is made to do one thing we all have a strength and weaknesses.
@Gooman15YT
@Gooman15YT 3 жыл бұрын
excellent, i learned it all
@misosoup7531
@misosoup7531 2 жыл бұрын
my friend says he likes your sweater; keep it up man! :)
@rupamsud718
@rupamsud718 3 жыл бұрын
welcome back YK
@veerrathod3747
@veerrathod3747 3 жыл бұрын
Thanks brother it really helped
@haomintian6815
@haomintian6815 3 жыл бұрын
Hi Dojo! thanks for the cool video! Always fun and inspiring! I just started on coding, I wonder if I should focus more on algorithms or actual project?
@CSDojo
@CSDojo 3 жыл бұрын
I would say, work on a project first! I think having some inspiration is important.
@nuridalarasati8694
@nuridalarasati8694 2 жыл бұрын
Thank you i like your explanation
@delealli9965
@delealli9965 2 жыл бұрын
THIS VIDEO IS SO GOOD
@doniyorrustamov996
@doniyorrustamov996 3 жыл бұрын
hello bro l really like your explanation 👍it is amazing. l hope you will not stop making video anymore. If you make video about why you couldn't make video during these times it would be very good video. good luck everytime thanks in advance !!
@_13eki
@_13eki 3 жыл бұрын
wow this helped me understand stack and queues easily Thank you really..... but i was curious how was he presenting like this?? i mean what tools are you using?
@moodleblitz
@moodleblitz 2 жыл бұрын
During a stack pop operation, is the top value deleted first and the value of "top" decremented after, or is it the other way around?
@Sirbikingviking
@Sirbikingviking Жыл бұрын
How have I not found this channel before now?
@mohammadyasir8700
@mohammadyasir8700 3 жыл бұрын
You are AWESOME !! , you should interact with us by uploading videos on various topics !!!
@CSDojo
@CSDojo 3 жыл бұрын
I will!
@nayanasagar6062
@nayanasagar6062 3 жыл бұрын
Can u please upload videos on regular basis......The way u guide through is really amazing...a sincere request ...🙏
@CSDojo
@CSDojo 3 жыл бұрын
I'll try my best. Thank you!
@vishalpawar096
@vishalpawar096 3 жыл бұрын
You are great man.... And too cool
@markmulder9845
@markmulder9845 3 жыл бұрын
Thank you. This channel really helps me with my data structures homework and such!
@KilluaZoldyck-wj5cy
@KilluaZoldyck-wj5cy 3 жыл бұрын
Finally you remembered you have a KZbin channel 😂😂😂. Awesome explanation btw👍🔥
@CSDojo
@CSDojo 3 жыл бұрын
Haha yes, sorry about the delay - but I'll post more
@Abdullah-cp6eb
@Abdullah-cp6eb 3 жыл бұрын
@@CSDojo no prpblem Dojo we will wait till die That was ridiculous righto😀
@KilluaZoldyck-wj5cy
@KilluaZoldyck-wj5cy 3 жыл бұрын
@@CSDojo I'm waiting 😄. By the way I want to buy a laptop for college......Got any recommendations?
@shahzebkhalid5591
@shahzebkhalid5591 2 жыл бұрын
@@KilluaZoldyck-wj5cy im replying very late but i would recommend Dell XPS
@kenkioqqo
@kenkioqqo Жыл бұрын
Straightforward analogy. But what's an example of a use case for stacks and queues? In what type of scenario would I need to use a stack?
@itsfaithtime
@itsfaithtime 3 жыл бұрын
Yaaayy!! You're back! :) 🙌🙌
@ishanpokhrel5972
@ishanpokhrel5972 3 жыл бұрын
make a video in priority queue and heaps love from nepal❤
@raymondjude47
@raymondjude47 3 жыл бұрын
You videos are awesome bro, what software are you using to record your screen?
@CSDojo
@CSDojo 3 жыл бұрын
Thank you. I talk about all of it here: www.csdojo.io/faq
@lilyoforiwaasam3474
@lilyoforiwaasam3474 3 жыл бұрын
You’re amazing!
@CSDojo
@CSDojo 3 жыл бұрын
Thank you!
@barataapsii2466
@barataapsii2466 2 жыл бұрын
Thank you Sir
@alphayowakarindi
@alphayowakarindi Жыл бұрын
Thank you!
@junaidahmed3981
@junaidahmed3981 2 жыл бұрын
I was wondering, won't it be much convenient if we used linked list instead of an array?
@magacaygamaxamuud7253
@magacaygamaxamuud7253 3 жыл бұрын
Thanks cs dojo
@subham2593
@subham2593 3 жыл бұрын
Love you bro
@selindoga
@selindoga 2 жыл бұрын
Can i combine queue and linkedlist? like making an algorithm that uses both algorithms' features? is it doable? or these two cannot be combined techicaly?..
@pietromantova7859
@pietromantova7859 2 ай бұрын
thank u bro!
@manu-singh
@manu-singh 3 жыл бұрын
Your videos are getting rarer to get hold of.
@CSDojo
@CSDojo 3 жыл бұрын
Sorry about that - I'll start posting more from now on
@manu-singh
@manu-singh 3 жыл бұрын
@@CSDojo don't be sorry, I am sure you're probably busy at work. I learned so much from your interview problems and this DSA playlist. So thank you for that.
@athukuricharan84
@athukuricharan84 2 жыл бұрын
which software are you using for the effects in this video?
@davidpalafox6978
@davidpalafox6978 3 жыл бұрын
Is statistics major good for data science if so would I need a masters? Good to see CS Dojo posting more!
@CSDojo
@CSDojo 3 жыл бұрын
Thank you, yes, and about master's - not sure. I think if I was you, I would do CS because it's easier to get a job with it. CS undergrad degree and whatever master's degree you feel like you need if you think you need it.
@davidpalafox6978
@davidpalafox6978 3 жыл бұрын
@@CSDojo yeah I’ve been struggling with my CS major, but I guess I just gotta put more effort then what I have been doing I’m in my 3rd year. Thanks!
@procode6881
@procode6881 3 жыл бұрын
Which software you use to make these illustrations
@kartikbilagiarts7213
@kartikbilagiarts7213 3 жыл бұрын
I am not the first....😗 I am not the last....😄 But as the notification came...😯 I click it so fast..!!!!.😲 That my phone got blast..!!!.😨 🌻🌻🌻 😂😂😂
@webdevinterviewtrainingusa1494
@webdevinterviewtrainingusa1494 3 жыл бұрын
Checkout my video on Stacks and give me some feedback.
@bara7979
@bara7979 Жыл бұрын
Thank you
@samrasoli
@samrasoli Жыл бұрын
useful, thanks
@Gooman15YT
@Gooman15YT 3 жыл бұрын
bro what how is it possible to be this early to a coding video
@delealli9965
@delealli9965 2 жыл бұрын
THANK YOU
@tushig.b.6526
@tushig.b.6526 3 жыл бұрын
You are the life saver! Hontouni arigatou gozaimasu!
@godwinprecious2713
@godwinprecious2713 3 жыл бұрын
wtf! How come I wasn't notified by KZbin when you posted this video?!?
@rayneilaquino3286
@rayneilaquino3286 3 жыл бұрын
What app/ program did you use in creating this video?
@leviermonaites6832
@leviermonaites6832 3 жыл бұрын
If I have a queue, and it's a tasks queue, once that one task is completed I should remove the element from the queue, or just move the pointers? And if I should just move the pointers, once that the pointers are on its limits, I would have to create another bigger queue to do what I want, right? This approach wouldn't use a lot of memory? Once I made this remark, am I right if I define a queue as something that should be just a collection of things that will be freed of the memory soon, once it's completed? Edit1: I was searching about, and one good response that I found was to use linked-lists, what I think is a great approach, once that it is first-in first-out, so you wouldn't have the problem of needing to change something or access something in the middle of the list, at least I think so. Edit2: @t Here's the code I've developed so far, trying to solve this issue.
@rosalindaalbrecht1795
@rosalindaalbrecht1795 Жыл бұрын
Favorite quote: "That's how pancakes in the real world work."
@betopone3889
@betopone3889 3 жыл бұрын
thanks 💜😊
@list9016
@list9016 2 жыл бұрын
it feels like a crime watching this for free..
@dianneroces883
@dianneroces883 3 жыл бұрын
Hi CS Dojo, I was wondering if you could help me with Google not responding issue. It causing me too much trouble. Thanks in advance.
@paradigmshift2223
@paradigmshift2223 3 жыл бұрын
fantastic
@ttowe
@ttowe 3 жыл бұрын
what program do you use in this video?
@II_xD_II
@II_xD_II 3 жыл бұрын
A video on graph and their algos like bfs dfs dijkstra
@adityasatyam6300
@adityasatyam6300 2 жыл бұрын
Amazing man 🥰😍🤩
@weltmeister
@weltmeister 3 жыл бұрын
I would've needed this a couple months ago
@saketverma8243
@saketverma8243 3 жыл бұрын
Tq bro
@rupamsud718
@rupamsud718 3 жыл бұрын
Can you make a series on java please. Cheers
@deforesttthompson9299
@deforesttthompson9299 3 жыл бұрын
Wouldn't it be better to use a linked list to implement a stack?
@CodeWithAkbarov
@CodeWithAkbarov 2 жыл бұрын
Hi Dojo! thank you for the cool video. I got a lot information from this. But program do you use to make such kind interesting animation when you click the info under the image appears with cool animation.
@minecraftepicscarboy6885
@minecraftepicscarboy6885 3 жыл бұрын
Hello yk can you make a video on how to make a working clock using python programming
@vishalpawar096
@vishalpawar096 3 жыл бұрын
Can you make a video on how to learn c++ and java
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 7 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
Data Structures: Stacks and Queues
5:46
HackerRank
Рет қаралды 551 М.
Learn Queue data structures in 10 minutes 🎟️
10:07
Bro Code
Рет қаралды 103 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2 МЛН
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,2 МЛН
Introduction to Trees (Data Structures & Algorithms #9)
10:30
Hash Tables and Hash Functions
13:56
Computer Science
Рет қаралды 1,5 МЛН
Data structures: Introduction to Trees
15:50
mycodeschool
Рет қаралды 1,4 МЛН