Тёмный

Learn Queue data structures in 10 minutes 🎟️ 

Bro Code
Подписаться 2,2 млн
Просмотров 121 тыс.
50% 1

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
// *******************************************************

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 197   
@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 2 года назад
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 3 года назад
@Lowkey you do know he's a senior coding dude at google right?
@BroCodez
@BroCodez 3 года назад
@@etcetc3800 nope. I code as a hobby lol
@jhonburnvillamor3760
@jhonburnvillamor3760 3 года назад
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!!!
@NobleAbsinthe
@NobleAbsinthe Год назад
You are legit bench pressing an entire generation of cs students with this course.
@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
@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 ;
@muralishankar9719
@muralishankar9719 2 года назад
Excellent Channel That I've ever been on for coding classes.. You are the best Bro Code.
@pujyamvssnkdheeraj5069
@pujyamvssnkdheeraj5069 Год назад
Thank you so much bro - you helped us a Lot to learn .. Congratulationls . you will very soon reach 1M ..🎉🎉🎉🎉🎉🎉🎉🎉
@cineloopers7131
@cineloopers7131 3 года назад
1)liked❤️ 2)commented 3) subscribed 👍🏻 Excellent explanation with examples thank you
@chadsmith71
@chadsmith71 8 месяцев назад
As a person named Chad, I'm somewhat dismayed and disappointed that you put Chad behind Karen in the queue ;-)
@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!
@fire_krystal
@fire_krystal Год назад
Best teacher of Java on RU-vid period!! Thank you so much
@KlearChristal
@KlearChristal 2 года назад
I love this style of teaching. Thank you for the laughs and the knowledge!
@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 11 месяцев назад
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
@bajron3325
@bajron3325 2 года назад
Harold is senior Java developer. That will be some of you guys in 20 years.
@aislofi
@aislofi 3 года назад
The content is sooo amazing!!! I like your humor in your tutorials, that makes more interesting to watch xD
@shroomer3867
@shroomer3867 6 месяцев назад
Thank you, you explained it pretty well!
@ChiragGarg-nv8pj
@ChiragGarg-nv8pj 7 месяцев назад
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
@Daaninator
@Daaninator 3 года назад
When "Sister Code" ?
@BroCodez
@BroCodez 3 года назад
oh shit, that's a cool alternate channel name
@kamalCode
@kamalCode 3 года назад
Sir, please python data structures and algorithms 100 hour tuotorial plz Udemy course paid.
@ctluwua7695
@ctluwua7695 3 года назад
I don't Know what to comment BUT... WOW
@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 :)
@Remolhunter97
@Remolhunter97 3 года назад
Thank you ! Learning with your videos is wonderfull
@BroCodez
@BroCodez 3 года назад
thanks for watching Remolhunter!
@yohanaf
@yohanaf 2 года назад
This guy fulfilled my dream: learning from memes. Your teaching is the best and your lessons are really funny! haha
@gameGXT
@gameGXT 2 года назад
Super Fantastic
@shuilin1499
@shuilin1499 11 месяцев назад
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
@aditya_asundi
@aditya_asundi 3 года назад
Superb video bro!! and congrats for crossing 50k subs.
@MohamedIbrahim98
@MohamedIbrahim98 Год назад
I wanna thank you for your great work, such an amazing channel 👏
@iRandroid
@iRandroid 3 года назад
❤️❤️❤️
@natnat-eb3fp
@natnat-eb3fp 24 дня назад
I would tell Karen to upgrade her algorithm, it doesn't work people are just gonna get annoyed at her behavior
@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
@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.
@silaadmiraldo
@silaadmiraldo 5 месяцев назад
what a chad!, thanks a lot bro, very easy to understand with those example😂
@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
@RichMo86
@RichMo86 3 года назад
👏🏼👏🏼👏🏼
@arjundas7078
@arjundas7078 3 месяца назад
great great great great great great great great great great great great great great great great great great great
@danielmilewski7659
@danielmilewski7659 2 года назад
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!
@helloworldcsofficial
@helloworldcsofficial Месяц назад
Great. Is there a similar video but with Python?
@youvegotmail9385
@youvegotmail9385 2 года назад
A wild Karen appears and wants to talk to the Manager. I'm dead.
@Mosad-vh1vj
@Mosad-vh1vj 6 месяцев назад
Karen will say poll() remove me from the queue manager 😂
@tigercat1690
@tigercat1690 2 года назад
Good explanation of the queue. Liked it a lot !
@jakeblake06
@jakeblake06 11 месяцев назад
Coincidentally leaned back in my chair at the same time you told me to
@СергейЕмельянов-е9з
I love you, bro! From Russia with love :) Your lessons is best!) And I have PS4 too ;)
@RemoteSynergy
@RemoteSynergy Год назад
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
@damianos.2954
@damianos.2954 Год назад
Oh yes
@Kiran-gy7nf
@Kiran-gy7nf Год назад
Y Don't u do Python Man. It will be a Help with it
@majellaomahony204
@majellaomahony204 4 месяца назад
very helpful for anyone without CS degree - love concise way of teaching important essentials - thanks
@iamfromasean705
@iamfromasean705 3 года назад
Bro, please continue your channel. Don't give up.
@BroCodez
@BroCodez 3 года назад
I'm still going! Don't worry!
@عطاابراهيمجعمان
@عطاابراهيمجعمان 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
@NirmitKalyani
@NirmitKalyani Год назад
Hey bro please help me its showing syntax error and red line under dot(.) And semicolon(;) in queue.offer();
@avipatel5239
@avipatel5239 3 года назад
not bigschlongbro posting videos on my exam
@baubaudinamo
@baubaudinamo 3 года назад
You promised and you delivered! Nice video Bro!
@Fedo_94
@Fedo_94 3 года назад
Salut
@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
@mrbigman9980
@mrbigman9980 2 года назад
Lmfao the Karen example made me subscribe
@iceprincesskylyjh4823
@iceprincesskylyjh4823 2 года назад
How about, the user will input the value?
@shrutikulkarni3852
@shrutikulkarni3852 Год назад
i clicked just becayse of the channel name
@AllenAndersonTaylor
@AllenAndersonTaylor 2 года назад
Thank you for this! You rock. I'm a computer science student.
@ihig912
@ihig912 5 месяцев назад
Thanks Dude you helped me with my final high school exam
@FaresKhalid
@FaresKhalid 3 года назад
You're my preferable instructor :)
@AaronLandry-c7z
@AaronLandry-c7z 14 дней назад
Perez Richard Taylor Michelle Garcia Joseph
@blue.v2
@blue.v2 2 года назад
big W thanks gang my teacher was bugging
@Sayantan_627
@Sayantan_627 2 года назад
Your teaching style is amazing. Don't know why YT suggested me so late.
@charlenebowman9112
@charlenebowman9112 Год назад
I would say I am the manager!😆
@virendramali1754
@virendramali1754 Год назад
Thanks for providing easiest way to learn DSA in java
@isabellemonkey29053
@isabellemonkey29053 11 месяцев назад
great analogy, thanks for the video. made it fun !
@virendramali1754
@virendramali1754 Год назад
Plzz make more videos related to Java
@Jitoro5
@Jitoro5 10 месяцев назад
Thanks, really understandable !
@turtleguy97
@turtleguy97 2 года назад
are these all videos for data structures
@arnabsengupta8092
@arnabsengupta8092 2 года назад
Love you bro ❤...love from india
@rewardx
@rewardx 3 года назад
not to be confused with fifa 🤣🤣🤣
@vuchinh9989
@vuchinh9989 3 года назад
Thank you! Your lesson is very excited as always (^^^)
@nnd19
@nnd19 2 года назад
love the karen chad steve harold thinggys hahahahah thanksssssss so much!
@Misha4690
@Misha4690 8 месяцев назад
nice video bro, helped me a lot!
@olgavasileva2521
@olgavasileva2521 2 года назад
I am waiting for 1M. You completely deserved it.
@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
@proalexv
@proalexv Год назад
Super helpfull, thank you for the pictures, explaining the interface with a diagram and showing code with java!
@sug_madic7683
@sug_madic7683 3 года назад
Karen doesn't were mask because things need to breath :)
@Sub-zero1123
@Sub-zero1123 3 года назад
Your classes are great, keep it up
@AR-rg2en
@AR-rg2en Год назад
Random comment just for support
@siraj6861
@siraj6861 6 дней назад
//This is a random comment
@danishuddin9752
@danishuddin9752 2 года назад
Lovely explanation Bro thank you very much!
@frankchen3021
@frankchen3021 3 года назад
The dislikes are from Karens
@micropennies6680
@micropennies6680 11 месяцев назад
iyot
@zhaochenxie3616
@zhaochenxie3616 5 месяцев назад
not the kidz bop karen😭
@Muhammadfaisal-kd9kx
@Muhammadfaisal-kd9kx 11 месяцев назад
Thankyou well explained Brother.
@MrFlynn10101
@MrFlynn10101 2 года назад
"this is a random comment"
@smaransure2234
@smaransure2234 4 месяца назад
isn't this just linked list
@xames7789
@xames7789 3 года назад
Thank u broo
@drewbhardwaj
@drewbhardwaj 3 года назад
Just a random comment to destroy youtube algorithm.
@BroCodez
@BroCodez 3 года назад
Thank you for the +1 boost!
@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.
@Giovanni-Rhonim
@Giovanni-Rhonim 8 месяцев назад
God Bless you Bro+ 14
@CharlesAfrane-pb3qy
@CharlesAfrane-pb3qy Месяц назад
I will her to go away
@robertwide6592
@robertwide6592 2 года назад
wild karen appears xD
@destructaphoenix6679
@destructaphoenix6679 3 года назад
comment for the algo!
@sylvanfranklin6904
@sylvanfranklin6904 3 года назад
Hey bro, I know ur probably busy with stuff but could you make a video about PyGame?
@BroCodez
@BroCodez 3 года назад
I would consider it! I haven't thought that far ahead yet honestly lol 😅
@gjsatru3383
@gjsatru3383 3 года назад
Your way of explanation is awesome And you cover every detail👍👍👍
@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
@dannyrand2543
@dannyrand2543 Год назад
Really helpful, thanks bro!
@Naruto_Uzumaki_
@Naruto_Uzumaki_ 10 месяцев назад
This guy is so cool 😭
Далее
Learn Priority Queue data structures in 5 minutes 🥇
5:01
Learn Linked Lists in 13 minutes 🔗
13:24
Просмотров 307 тыс.
ХОККЕЙНАЯ КЛЮШКА ИЗ БУДУЩЕГО?
00:29
HA-HA-HA-HA 👫 #countryhumans
00:15
Просмотров 565 тыс.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Просмотров 238 тыс.
Top 7 Data Structures for Interviews Explained SIMPLY
13:02
Circular Queue Implementation - Array
9:50
Просмотров 88 тыс.
Learn Stack data structures in 10 minutes 📚
10:07
Просмотров 216 тыс.
Learn Binary Search in 10 minutes 🪓
10:04
Просмотров 114 тыс.
How I would learn Leetcode if I could start over
18:03
Просмотров 559 тыс.
Java HashMap 🗺️
13:05
Просмотров 83 тыс.