Learn Queue data structures in 10 minutes 🎟️

  Рет қаралды 106,044

Bro Code

Bro Code

3 жыл бұрын

Queue data structure java tutorial example explained
#queue #data #structure
// *******************************************************
// Queue = FIFO data structure. First-In First-Out
// A collection designed for holding elements prior to processing
// Linear data structure
// enqueue = offer()
// dequeue = poll()
// Where are queues useful?
// 1. Keyboard Buffer (letters should appear on the screen in the order they're pressed)
// 2. Printer Queue (Print jobs should be completed in order)
// 3. Used in LinkedLists, PriorityQueues, Breadth-first search
// *******************************************************

Пікірлер: 188
@BroCodez
@BroCodez 3 жыл бұрын
import java.util.Queue; import java.util.LinkedList; public class Main{ public static void main(String[] args) { // ******************************************************* // Queue = FIFO data structure. First-In First-Out // A collection designed for holding elements prior to processing // Linear data structure // enqueue = offer() // dequeue = poll() // Where are queues useful? // 1. Keyboard Buffer (letters should appear on the screen in the order they're pressed) // 2. Printer Queue (Print jobs should be completed in order) // 3. Used in LinkedLists, PriorityQueues, Breadth-first search // ******************************************************* Queue queue = new LinkedList(); queue.offer("Karen"); queue.offer("Chad"); queue.offer("Steve"); queue.offer("Harold"); //System.out.println(queue.isEmpty()); //System.out.println(queue.size()); //System.out.println(queue.contains("Harold")); //System.out.println(queue.peek()); //queue.poll(); //queue.poll(); //queue.poll(); //queue.poll(); System.out.println(queue); } }
@mouradbougarne1162
@mouradbougarne1162 3 жыл бұрын
I hope that you complete this series by the end. As a self-taught developer, the data structure and algorithms are nightmares for me.
@XxAbdo
@XxAbdo Жыл бұрын
I know it may be a lot for you but can make another tutorial but with C# ?
@joyceasante8292
@joyceasante8292 Жыл бұрын
Practicing... import java.util.Queue; import java.util.LinkedList; public class Main{ public static void main(String[]args){ Queuequeue = new LinkedList(); //System.out.println(queue.isEmpty()); queue.offer("Temi"); queue.offer("Louella"); queue.offer("Kelly"); queue.offer("Kwabena"); //System.out.println(queue.peek()); //System.out.println(queue.size()); System.out.println(queue.contains("Thabang")); //queue.poll(); //queue.poll(); //queue.poll(); //queue.poll(); System.out.println(queue); } }
@lowkey1281
@lowkey1281 3 жыл бұрын
You're so underrated! Hope your channel find the recognition it deserves🔥
@BroCodez
@BroCodez 3 жыл бұрын
Thanks Lowkey! We'll get there eventually
@lowkey1281
@lowkey1281 3 жыл бұрын
@@BroCodez I've learnt almost 2 years worth of my school syllabus (Python) from your channel, thank you!
@amolgahane5762
@amolgahane5762 3 жыл бұрын
That's absolutely true😳
@etcetc3800
@etcetc3800 2 жыл бұрын
@Lowkey you do know he's a senior coding dude at google right?
@BroCodez
@BroCodez 2 жыл бұрын
@@etcetc3800 nope. I code as a hobby lol
@jhonburnvillamor3760
@jhonburnvillamor3760 2 жыл бұрын
I finished your Java full course video, and I now have a solid foundation in java. I am also learning python with the video that you made. Now I am watching and studying data structures and algorithms from a book and mixed it with your videos in data structures and algorithms. I'm a computer engineering student, and all of your videos, from basic (like html, css, javascript) to other languages and concepts of computer science really helped me a lot and I can't thank you enough Bro!!!
@KlearChristal
@KlearChristal 2 жыл бұрын
I love this style of teaching. Thank you for the laughs and the knowledge!
@fire_krystal
@fire_krystal 9 ай бұрын
Best teacher of Java on KZbin period!! Thank you so much
@aislofi
@aislofi 2 жыл бұрын
The content is sooo amazing!!! I like your humor in your tutorials, that makes more interesting to watch xD
@majellaomahony204
@majellaomahony204 22 күн бұрын
very helpful for anyone without CS degree - love concise way of teaching important essentials - thanks
@proalexv
@proalexv Жыл бұрын
Super helpfull, thank you for the pictures, explaining the interface with a diagram and showing code with java!
@muralishankar9719
@muralishankar9719 2 жыл бұрын
Excellent Channel That I've ever been on for coding classes.. You are the best Bro Code.
@gjsatru3383
@gjsatru3383 3 жыл бұрын
Your way of explanation is awesome And you cover every detail👍👍👍
@Sub-zero1123
@Sub-zero1123 2 жыл бұрын
Your classes are great, keep it up
@tigercat1690
@tigercat1690 2 жыл бұрын
Good explanation of the queue. Liked it a lot !
@MohamedIbrahim98
@MohamedIbrahim98 Жыл бұрын
I wanna thank you for your great work, such an amazing channel 👏
@cineloopers7131
@cineloopers7131 3 жыл бұрын
1)liked❤️ 2)commented 3) subscribed 👍🏻 Excellent explanation with examples thank you
@Mohamed-uf5jh
@Mohamed-uf5jh Жыл бұрын
Good explanation of the queue. !
@user-iu9wv2sm2z
@user-iu9wv2sm2z 7 ай бұрын
great analogy, thanks for the video. made it fun !
@shroomer3867
@shroomer3867 3 ай бұрын
Thank you, you explained it pretty well!
@olgavasileva2521
@olgavasileva2521 Жыл бұрын
I am waiting for 1M. You completely deserved it.
@AllenAndersonTaylor
@AllenAndersonTaylor 2 жыл бұрын
Thank you for this! You rock. I'm a computer science student.
@danishuddin9752
@danishuddin9752 2 жыл бұрын
Lovely explanation Bro thank you very much!
@virendramali1754
@virendramali1754 Жыл бұрын
Thanks for providing easiest way to learn DSA in java
@Jitoro5
@Jitoro5 7 ай бұрын
Thanks, really understandable !
@Muhammadfaisal-kd9kx
@Muhammadfaisal-kd9kx 7 ай бұрын
Thankyou well explained Brother.
@Sayantan_627
@Sayantan_627 2 жыл бұрын
Your teaching style is amazing. Don't know why YT suggested me so late.
@Remolhunter97
@Remolhunter97 3 жыл бұрын
Thank you ! Learning with your videos is wonderfull
@BroCodez
@BroCodez 3 жыл бұрын
thanks for watching Remolhunter!
@mdamanullahkhan3412
@mdamanullahkhan3412 3 жыл бұрын
Huge Love from Bangladesh 🇧🇩 Bro. I've completed ur java all in one video. Thanks for diminishing the dreed of mine about java. InshaAllah, this Life Saving Channel surely will get millions of subscriber.Stay safe Bro. And it will be a pleasure to get a full Data Structures And Algorithm playlist from our BRO🖤✌️.
@BroCodez
@BroCodez 3 жыл бұрын
Thank you for the support Raef! We'll make it there eventually!
@aditya_asundi
@aditya_asundi 3 жыл бұрын
Superb video bro!! and congrats for crossing 50k subs.
@djmsgjsjsjs9398
@djmsgjsjsjs9398 2 жыл бұрын
you are the best ,dude
@wolanus
@wolanus 3 жыл бұрын
Great video.
@silaadmiraldo
@silaadmiraldo 2 ай бұрын
what a chad!, thanks a lot bro, very easy to understand with those example😂
@brandonkruger9040
@brandonkruger9040 3 жыл бұрын
Thank you for the awesome explanation.
@BroCodez
@BroCodez 3 жыл бұрын
Glad it was helpful! Thanks for watching!
@NobleAbsinthe
@NobleAbsinthe Жыл бұрын
You are legit bench pressing an entire generation of cs students with this course.
@dannyrand2543
@dannyrand2543 Жыл бұрын
Really helpful, thanks bro!
@arnabsengupta8092
@arnabsengupta8092 2 жыл бұрын
Love you bro ❤...love from india
@workingricardo9373
@workingricardo9373 8 ай бұрын
lovd it!
@felipemedrano5363
@felipemedrano5363 3 жыл бұрын
Great video, Thank you so much
@BroCodez
@BroCodez 3 жыл бұрын
Thanks for the support Felipe!
@LorenzoMLasam
@LorenzoMLasam 3 жыл бұрын
I think it would be great if you could also make videos about Search Algorithms, Sorting Algorithms, Recursions, and also the types of algorithms in your "Data Structure and Algorithms" playlist And your videos are amazing. Clear, short, and very easy to understand. Hope your channel would grow
@BroCodez
@BroCodez 3 жыл бұрын
Yes! I still have more topics to cover tho
@shuilin1499
@shuilin1499 8 ай бұрын
Can you make topic about how to implement them instead just introduce how to use them because you know this course mostly about implementation @@BroCodez
@FaresKhalid
@FaresKhalid 2 жыл бұрын
You're my preferable instructor :)
@emirhanyldz4093
@emirhanyldz4093 Жыл бұрын
broooo this is awesome
@juanvalerareales
@juanvalerareales 3 жыл бұрын
I was waiting till the end of the video to smash that like button, as I always do, but when I saw the wild Karen appearing I had to pause the video and give your deserved "like", brooo.
@BroCodez
@BroCodez 3 жыл бұрын
Thank Juan!
@Bose141
@Bose141 Жыл бұрын
the way you teach is amazing like the cool meme channels . i dont feel bore. as i did t learn java it has been a hard time to convert your lecture in to cpp ; thank you ;
@Misha4690
@Misha4690 5 ай бұрын
nice video bro, helped me a lot!
@pujyamvssnkdheeraj5069
@pujyamvssnkdheeraj5069 Жыл бұрын
Thank you so much bro - you helped us a Lot to learn .. Congratulationls . you will very soon reach 1M ..🎉🎉🎉🎉🎉🎉🎉🎉
@TheEvertonDias
@TheEvertonDias 11 ай бұрын
Thanks, Bro!
@user-ti6yq5yb9d
@user-ti6yq5yb9d 2 жыл бұрын
I love you, bro! From Russia with love :) Your lessons is best!) And I have PS4 too ;)
@ChiragGarg-nv8pj
@ChiragGarg-nv8pj 3 ай бұрын
sir i cant understand dsa in java plz u can make vedio of dsa in c programing plz i request u becoz i didnt understant programing on youtube except your channel u r best teacher
@vuchinh9989
@vuchinh9989 2 жыл бұрын
Thank you! Your lesson is very excited as always (^^^)
@Mr.Thicket
@Mr.Thicket 2 жыл бұрын
Bro my prof is making me do queues manually, like creating them in classes. Then I asked if I could just do it the normal way and he was like "oh yeah sure" this is 1000 times easier lol
@responsibleadultorami
@responsibleadultorami 10 ай бұрын
thank you!
@hugocaisse9079
@hugocaisse9079 Жыл бұрын
Thanks bro!
@michaelcamp2870
@michaelcamp2870 Жыл бұрын
Thank you
@deafprophets9009
@deafprophets9009 5 ай бұрын
Thanks Bro
@gameGXT
@gameGXT 2 жыл бұрын
Super Fantastic
@xames7789
@xames7789 3 жыл бұрын
Thank u broo
@imhungry7692
@imhungry7692 3 жыл бұрын
nice, you still the best
@ihig912
@ihig912 2 ай бұрын
Thanks Dude you helped me with my final high school exam
@baubaudinamo
@baubaudinamo 3 жыл бұрын
You promised and you delivered! Nice video Bro!
@Fedo_94
@Fedo_94 3 жыл бұрын
Salut
@MrLoser-ks2xn
@MrLoser-ks2xn Жыл бұрын
Thanks
@yohanaf
@yohanaf 2 жыл бұрын
This guy fulfilled my dream: learning from memes. Your teaching is the best and your lessons are really funny! haha
@victorrezende6002
@victorrezende6002 8 ай бұрын
Nice class
@alicjarottau4385
@alicjarottau4385 2 жыл бұрын
that was very nice explanation. II think it would be very developmental if u would add how to make fifo with define size of queue
@adelfioolubodun3989
@adelfioolubodun3989 3 ай бұрын
heavy that lad
@oussemaelmzergui7055
@oussemaelmzergui7055 7 ай бұрын
thanks
@oguzhantopaloglu9442
@oguzhantopaloglu9442 3 жыл бұрын
i know all of these but im still watching because these videos are amazing
@BroCodez
@BroCodez 3 жыл бұрын
Thanks Oğuzhan! Hopefully it will be a good refresher at the very least
@inamullahkhan7793
@inamullahkhan7793 3 жыл бұрын
I am so excited for DSA and thinking how much tutorials we will have to enjoy at the end of this series 🤭😃
@BroCodez
@BroCodez 3 жыл бұрын
Thanks Inam! Idk how many videos I will add to this playlist yet lol
@blue.v2
@blue.v2 2 жыл бұрын
big W thanks gang my teacher was bugging
@thebinhluong7453
@thebinhluong7453 3 жыл бұрын
Thanks
@iamfromasean705
@iamfromasean705 3 жыл бұрын
Bro, please continue your channel. Don't give up.
@BroCodez
@BroCodez 3 жыл бұрын
I'm still going! Don't worry!
@virendramali1754
@virendramali1754 Жыл бұрын
Plzz make more videos related to Java
@nileshshastri4341
@nileshshastri4341 9 ай бұрын
Save this man at any cost.
@user-xm5rm1oz6v
@user-xm5rm1oz6v Жыл бұрын
THANKS1
@shuilin1499
@shuilin1499 8 ай бұрын
Hello, sir , thank you for such amazing vidoe. Can you make topic about how to implement them instead just introduce how to use them because you know this course mostly about implementation
@percivalgebashe4376
@percivalgebashe4376 Жыл бұрын
Nice
@TonyMalik7
@TonyMalik7 3 жыл бұрын
😍😍😍😍😍nicee video
@BroCodez
@BroCodez 3 жыл бұрын
Thank you Tony!
@Bromon655
@Bromon655 Жыл бұрын
These lessons are invaluable, however when CS grads say that a degree "teaches you how to think," I'm reminded of moments like 3:08 where a deep dive into documentation and knowing what to look for resulted in the best solution to a problem. I fear I could spend years teaching myself to code, but I couldn't guarantee I could teach myself to think correctly.
@iRandroid
@iRandroid 3 жыл бұрын
❤️❤️❤️
@MultimediaCizzy
@MultimediaCizzy 3 жыл бұрын
Please more of this 🙏
@BroCodez
@BroCodez 3 жыл бұрын
Sounds good! More DS & A comin' up!
@emiralpkilic5669
@emiralpkilic5669 8 ай бұрын
my bro
@danielmilewski7659
@danielmilewski7659 Жыл бұрын
Wow you are the best teacher i have ever seen! The explanation and presentation is gold standard. GUYS this needs channel needs some LOVE! Like, sub and comment! Thank you Bro!
@RichMo86
@RichMo86 3 жыл бұрын
👏🏼👏🏼👏🏼
@elisabethsaez3046
@elisabethsaez3046 3 жыл бұрын
❤️
@RemoteSynergy
@RemoteSynergy 11 ай бұрын
Hi! What is the photo editing program you used to display the Queue example? It looks similar to Microsoft Paint but has more advanced features
@Naruto_Uzumaki_
@Naruto_Uzumaki_ 7 ай бұрын
This guy is so cool 😭
@ctluwua7695
@ctluwua7695 3 жыл бұрын
I don't Know what to comment BUT... WOW
@constantinecodes6388
@constantinecodes6388 3 жыл бұрын
I recently found your channel and I quite like your videos. Might I suggest doing video clips for most of the data structures? Also does it have to be in Java 😢, would you consider Python or JS/TS as an option?
@BroCodez
@BroCodez 3 жыл бұрын
Thanks for watching! I'll try and figure something out, unfortunately the syntax really varies depending on the language. I wish it was all consistent for each programming language.
@constantinecodes6388
@constantinecodes6388 3 жыл бұрын
@@BroCodez I know it's quite different for JS but if you do it in Python it would be really nice. Keep up the great work tho'
@oguzhantopaloglu9442
@oguzhantopaloglu9442 3 жыл бұрын
Why would anyone need to know data structures in python lmao
@constantinecodes6388
@constantinecodes6388 3 жыл бұрын
@@oguzhantopaloglu9442 cause python is a very neutral language. Whenever you build data structures in JavaScript for example, you build them in a very specific way using object. That same way may not be applicable to other languages, whereas with python that might be more easily transferable.
@oguzhantopaloglu9442
@oguzhantopaloglu9442 3 жыл бұрын
You would never really need to know them for python, python is a dynamicly typed slow ass language with a lot of built in data types like list, tuple, dict and set. Seeing them in Java or C/C++ is way better and since most of the followers want Java it's obvious what it should be. Maybe he could do one for JS but python is pretty useless in terms of learning ADT.
@charlenebowman9112
@charlenebowman9112 Жыл бұрын
I would say I am the manager!😆
@amolgahane5762
@amolgahane5762 3 жыл бұрын
Hey Bro code , Can you make course on Android development? pls !! . . . And thank you!! for your all of this course 😊😊 it's very useful 💯
@BroCodez
@BroCodez 3 жыл бұрын
You're welcome! Maybe if enough people are interested in Android, then I could
@user-vf3qk9yh1b
@user-vf3qk9yh1b 3 жыл бұрын
Hello bro ,thanks for that .but we need a toutrial in c++ with every detail in it and toutrial in game development with c++ from scratch without using any game engine please
@damianos.2954
@damianos.2954 Жыл бұрын
Oh yes
@odinpro-ln4qk
@odinpro-ln4qk 11 ай бұрын
done
@bajron3325
@bajron3325 2 жыл бұрын
Harold is senior Java developer. That will be some of you guys in 20 years.
@agrajyadav2951
@agrajyadav2951 Жыл бұрын
Thanks a lot bro
@Giovanni-Rhonim
@Giovanni-Rhonim 5 ай бұрын
God Bless you Bro+ 14
@himanshujoshi7938
@himanshujoshi7938 3 жыл бұрын
Plz make videos on tkinter
@BroCodez
@BroCodez 3 жыл бұрын
check out the python video, there's tkinter topics in there
@k2h91
@k2h91 Жыл бұрын
Have some problem with it tho, while creating a new object: The type Queue is not generic; it cannot be parameterized with arguments . I did import util.Queue and changed to LInkedList but Exlipce still facing an issue... Edit: Cannot be class Queue, has to be different one xD
@gaurav561crazy5
@gaurav561crazy5 2 жыл бұрын
Commented
@w3jd4n
@w3jd4n Жыл бұрын
not that i'd benefit from this as my final is in two weeks but i suggest you re-explain this but in terms of circular arrays for future generations :)
@nnd19
@nnd19 2 жыл бұрын
love the karen chad steve harold thinggys hahahahah thanksssssss so much!
@iceprincesskylyjh4823
@iceprincesskylyjh4823 2 жыл бұрын
How about, the user will input the value?
@jakeblake06
@jakeblake06 8 ай бұрын
Coincidentally leaned back in my chair at the same time you told me to
Learn Priority Queue data structures in 5 minutes 🥇
5:01
Bro Code
Рет қаралды 118 М.
Learn Stack data structures in 10 minutes 📚
10:07
Bro Code
Рет қаралды 186 М.
La revancha 😱
00:55
Juan De Dios Pantoja 2
Рет қаралды 70 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 2,9 МЛН
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 61 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 24 МЛН
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Java HashMap 🗺️
13:05
Bro Code
Рет қаралды 76 М.
Learn Binary Search in 10 minutes 🪓
10:04
Bro Code
Рет қаралды 101 М.
Circular Queue Implementation - Array
9:50
Blue Tree Code
Рет қаралды 80 М.
Learn Linked Lists in 13 minutes 🔗
13:24
Bro Code
Рет қаралды 259 М.
Learn Big O notation in 6 minutes 📈
6:25
Bro Code
Рет қаралды 206 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 137 М.
APPLE совершила РЕВОЛЮЦИЮ!
0:39
ÉЖИ АКСЁНОВ
Рет қаралды 3 МЛН
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,8 МЛН
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 27 МЛН