Learn Linked Lists in 13 minutes 🔗

  Рет қаралды 349,912

Bro Code

Bro Code

Күн бұрын

Пікірлер: 216
@BroCodez
@BroCodez 3 жыл бұрын
TL;DR small data set: LinkedList = BAD large data set + lots of searching: LinkedList = BAD large data set + lots of inserting/deleting: LinkedList = GOOD import java.util.LinkedList; public class Main{ public static void main(String[] args) { // ******************************************************* // LinkedList = Nodes are in 2 parts (data + address) // Nodes are in non-consecutive memory locations // Elements are linked using pointers // advantages? // 1. Dynamic Data Structure (allocates needed memory while running) // 2. Insertion and Deletion of Nodes is easy. O(1) // 3. No/Low memory waste // disadvantages? // 1. Greater memory usage (additional pointer) // 2. No random access of elements (no index [i]) // 3. Accessing/searching elements is more time consuming. O(n) // uses? // 1. implement Stacks/Queues // 2. GPS navigation // 3. music playlist // // ******************************************************* LinkedList linkedList = new LinkedList(); /* // LinkedList as a Stack linkedList.push("A"); linkedList.push("B"); linkedList.push("C"); linkedList.push("D"); linkedList.push("F"); linkedList.pop(); */ // LinkedList as a Queue linkedList.offer("A"); linkedList.offer("B"); linkedList.offer("C"); linkedList.offer("D"); linkedList.offer("F"); //linkedList.poll(); //linkedList.add(4, "E"); //linkedList.remove("E"); //System.out.println(linkedList.indexOf("F")); //System.out.println(linkedList.peekFirst()); //System.out.println(linkedList.peekLast()); //linkedList.addFirst("0"); //linkedList.addLast("G"); //String first = linkedList.removeFirst(); //String last = linkedList.removeLast(); System.out.println(linkedList); } }
@wasemabushhab2943
@wasemabushhab2943 3 жыл бұрын
🌹🌹🌹
@thelastwomanstanding
@thelastwomanstanding Жыл бұрын
may i know why 1. implement Stacks/Queues // 2. GPS navigation // 3. music playlist is more suitable to use linked list?
@LindaSpradlin-xc2ph
@LindaSpradlin-xc2ph 5 ай бұрын
😅
@geeknet07
@geeknet07 3 жыл бұрын
This channel doesn't have normal content. rather masterpieces
@leihan2670
@leihan2670 Жыл бұрын
I just love the way you teach, straightforward, easy, and clear。 Lucky to have you in this world
@JamesZApex
@JamesZApex 3 жыл бұрын
Your videos teach me more than my professor.
@siphiweclintonmthebule6474
@siphiweclintonmthebule6474 2 жыл бұрын
More knowledge in a shorter period of time
@marxLz
@marxLz 2 жыл бұрын
they're really practical
@Ryder-gd9tl
@Ryder-gd9tl Жыл бұрын
seriously same lol, learned in 10 min what took my professor a 90min lecture
@amaanshaikh6868
@amaanshaikh6868 Жыл бұрын
True😹
@joelikespotatoes8321
@joelikespotatoes8321 Жыл бұрын
Same here, I wish I could pinpoint why this is so common, honestly it's concerning that "professionals" are getting dunked on by youtube.
@amadujalloh4700
@amadujalloh4700 3 жыл бұрын
My bro who code; You are the best man I am a CS student in The Gambia 🇬🇲! This channel is awesome
@lightning2395
@lightning2395 3 жыл бұрын
Yeah
@BroCodez
@BroCodez 3 жыл бұрын
Thanks Amadu!
@marklaw3938
@marklaw3938 3 жыл бұрын
What a godsend of a video. I'm crrently doing online CS 1103 course and literally the topic for this week is about linked lists. Thank you for this video. Your videos have truly helpful in my studies thus far.
@BroCodez
@BroCodez 3 жыл бұрын
Awesome! Looks like I made this video just in time! I'm glad they're helping!
@adityajain7486
@adityajain7486 3 жыл бұрын
You are a god of programming, Thank you for making my life easier. you are way more better than my stupid college teachers.
@deafprophets9009
@deafprophets9009 11 ай бұрын
That was the most simple straightforward no bs explanation for a data structure ever. You make DS&A look approachable!! Thanks for the content 🙏
@Wonder_Chariot
@Wonder_Chariot 4 ай бұрын
I absolutely love the way bro introduces himself. i love you bro
@DeveloperLewis
@DeveloperLewis 7 ай бұрын
Awesome, simple explanation covering LinkedList thanks
@Farhadpeymani
@Farhadpeymani 8 күн бұрын
Gosh! This channel is simply A TREASURE!
@MrSlinky
@MrSlinky 3 жыл бұрын
OMG you just helped me to understand in laymen's terms what my professor and multiple other youtubers couldn't
@RyanHurku
@RyanHurku 3 жыл бұрын
it is unfair that this video only has 554 likes at the time of my viewing , you explained in under 15 minutes , what took my professor 3 hours and 2 slideshows
@shivamjha5962
@shivamjha5962 2 жыл бұрын
A docx/pdf file of this courses source codes and notes will be really helpful...thanks for keeping this course free really means a lot!!
@aCyberVoid
@aCyberVoid 3 ай бұрын
I did a happy dance because of how simply you explained this, so even those curious can see if this is something they want to do as far as becoming a programmer. I'm expanding into more complex concepts in Python. this has helped me grasp a concept faster than cheetahs racing. You got yourself a new subscriber!! :D
@davidjunior390
@davidjunior390 Жыл бұрын
This is the only explanation I've been able to comprehend. Thank you
@longfeili254
@longfeili254 9 ай бұрын
Awesome teaching guide not only teach easily to understand but coding clearly. Thanks greatly!
@burn-e-e6980
@burn-e-e6980 Жыл бұрын
Amazing teaching way really like it
@achillesa5894
@achillesa5894 Жыл бұрын
The first 5 minutes of this explained it better than a year of university
@j12325
@j12325 Жыл бұрын
Fun fact: he learned from your University
@theuberman7170
@theuberman7170 3 жыл бұрын
OMG right on time!! Are you reading our minds?
@santiagoaristi216
@santiagoaristi216 3 жыл бұрын
Idk there's really nobody that explains anything like our fellow "Bro". Completely, underrated and undervalued! Thank you for what you do video after video. Btw we need more input more input lol
@HP_Tubcraft
@HP_Tubcraft 2 жыл бұрын
Just found your channel. One of my fav dev channels on YT. Proud to call myself a bro 🤙🏼
@rahulmandal1380
@rahulmandal1380 3 жыл бұрын
Hlw Bro Code! Keep updating this playlist at regular intervals. The way you explain is Awesome.. 😊😊😊😊😀😀😀
@BroCodez
@BroCodez 3 жыл бұрын
Thanks! I will! Weekly is a good interval, these are tough topics to discuss 😅
@Greekultranationalist
@Greekultranationalist Жыл бұрын
This man teaches Programming better than any college would do.
@adriano7710
@adriano7710 3 жыл бұрын
Bro, just what I nedded for a project!!!! You are awesome sir.
@BroCodez
@BroCodez 3 жыл бұрын
Nice! I made it just in time then!
@soumichandra8927
@soumichandra8927 3 жыл бұрын
@@BroCodez Bro, I want to contact you. How to do so?
@wecari
@wecari 2 ай бұрын
Fastest I have ever subscribed to a channel. I wasn't even half way through the video. Well done bro. 😊
@syedmaaz2374
@syedmaaz2374 2 жыл бұрын
I buy 2500 rupees course to understand DSA but now i realise my money is waste .Because you more better than course
@Amir_Plays_non_stop
@Amir_Plays_non_stop 3 жыл бұрын
Hahahaha never stop surprising me! Each video is literally blowing my mind, what a way of explaining! Keep it up!
@Farhadpeymani
@Farhadpeymani 8 күн бұрын
Bro, this is simply PERFECTION! Nice job Man! Now that is a ALPHA! Keep it up Bro!
@oni1ecram123
@oni1ecram123 3 жыл бұрын
"666 Crime circle "....that adress sounds so dark...😅😅
@supersheep1000
@supersheep1000 14 күн бұрын
The one million elements graphic gave me a good chuckle.
@danielmilewski7659
@danielmilewski7659 2 жыл бұрын
Awesome video, again Gold standard teaching methods!
@visna3319
@visna3319 Жыл бұрын
your videos make me LOOOVE coding!! never thought I would say that so THANK YOU 🙏🙏
@sigmaxricky6411
@sigmaxricky6411 3 жыл бұрын
gave a like before watching coz i know it will be amazing as always
@stevend1394
@stevend1394 10 ай бұрын
I'm here again to refresh my knowledge.
@victorrezende6002
@victorrezende6002 Жыл бұрын
Nice class
@agentpenguin3966
@agentpenguin3966 4 ай бұрын
Thank you so much for the detailed explanation, along with the 'uses' at the end.
@musicspirit7015
@musicspirit7015 Жыл бұрын
Thank you very muchh! I've been struggling alot about linklist address pointers and arrays for so long , but i watched just 10 mins of yours and I now understand everything! Thanks again brooo T-T
@brandonkruger9040
@brandonkruger9040 3 жыл бұрын
We on a roll tonight! Thanks for sharing bro.
@fredrexsalac961
@fredrexsalac961 2 ай бұрын
i hope this discussion will be followed the instructions during my next meeting within my instructor
@danielm2123
@danielm2123 3 ай бұрын
You saved me during my data structures class
@neil_armweak
@neil_armweak 3 жыл бұрын
Fantastic content!
@BroCodez
@BroCodez 3 жыл бұрын
Thanks neil!
@Siik94Skillz
@Siik94Skillz Ай бұрын
So I am learning C for Windows development and Red Teaming from a source that is great but cuts a lot of bullshit and goes quite quick. Im learning a lot but some concepts could do with a little bit more explanation. Thats where my Bro comes in! And I know this is JAVA but the concept is the same and these are Absolutely FANTASTIC explanations. Great to fill in the missing pieces with padding where needed. Thanks a lot man ! you really really help!
@iRandroid
@iRandroid 3 жыл бұрын
Great as always
@aymanmouhcine5749
@aymanmouhcine5749 Жыл бұрын
Amazing explanation
@abdullahsaid4765
@abdullahsaid4765 3 жыл бұрын
my bro is here thank you :)+)
@anywaylose3999
@anywaylose3999 Жыл бұрын
Great video, simple and understandable
@Lalogum
@Lalogum 5 ай бұрын
better than all my prof. much love
@fadethecreator
@fadethecreator Жыл бұрын
Hey bro, could you please do one on singlys like using the linked list class. This is eternally helpful, though I’m struggling to find tutorials on youtube that cover anything like the ListNode class, so if you could that would be amazing because your videos are the best!
@НуркамалНурмухамед
@НуркамалНурмухамед 3 жыл бұрын
Holy shit, that’s incredible man. I really like your tutorials
@ottttoooo
@ottttoooo 3 жыл бұрын
Hey Bro, I just finished the java for beginners playlist, it was very well done btw! Prior to that, I had absolutely zero experience in coding, and that was a great start. What would you recommend for me next? maybe specific projects I could work on to improve my skills? because I feel kinda lost now :D Thank you!
@B3Band
@B3Band 2 жыл бұрын
I've been solving problems on leetcode and hackerrank That's how I ended up here, because I've never heard of a linked list despite following Bro Code for like 3 months now
@DanishFarhan-wg3xz
@DanishFarhan-wg3xz 5 ай бұрын
so many informations in one video :>. thanks
@SushiK994
@SushiK994 3 жыл бұрын
Pretty helpful thank you so much sir
@thaungthanhan5928
@thaungthanhan5928 Жыл бұрын
Really awesome.
@muhammed5667
@muhammed5667 Жыл бұрын
Thanks for the concise explanation, I feel confident for my quiz!
@anasalsaabi5657
@anasalsaabi5657 21 күн бұрын
Thanks a lot bro your videos are amazing and the best in explaining
@RAHULSINGH-sn2ol
@RAHULSINGH-sn2ol 3 жыл бұрын
Much better than my professor, Keep it up Bro #brocode👍
@changyou4454
@changyou4454 3 жыл бұрын
🚀100K+ soon! Thanks, Bro you're our hero!
@azamatey
@azamatey 2 жыл бұрын
I've become BROOOOOO!!! Thanks broo, you are the best!!!
@emreotu4464
@emreotu4464 21 күн бұрын
Learn Linked Lists in 13 minutes 🔗
@alexreznitsky6338
@alexreznitsky6338 Жыл бұрын
You are my real JavaBro =) thanks a lot
@juansebastiansandovalcorre9254
@juansebastiansandovalcorre9254 Жыл бұрын
TL;DR small data set: LinkedList = BAD large data set + lots of searching: LinkedList = BAD large data set + lots of inserting/deleting: LinkedList = GOOD better are arraylists for seraching and it works like queue and stack
@ahmadyaseen2617
@ahmadyaseen2617 3 жыл бұрын
Please dont stop making videos although you are getting less views and likes we know your videos are worthy and very helpfull for us
@dashunderscore7470
@dashunderscore7470 2 жыл бұрын
thank you bro , loved it , its so detailed and wasy to understand
@percivalgebashe4376
@percivalgebashe4376 Жыл бұрын
Nice
@felixnyamongo
@felixnyamongo 2 жыл бұрын
Awesome Bro
@MuhammadUsman-qe1st
@MuhammadUsman-qe1st 2 ай бұрын
cleared my concept finally
@cipherguard
@cipherguard Жыл бұрын
Awsome
@poles1c
@poles1c 9 ай бұрын
This was extremely helpful, thank you!
@abdurequiem4919
@abdurequiem4919 2 жыл бұрын
A video on how to reverse a Linked List please. Btw love your videos 🙌
@baubaudinamo
@baubaudinamo 3 жыл бұрын
Awesome.
@yasmineibr
@yasmineibr 10 ай бұрын
very very helpful thank you!
@DevJoeOficial
@DevJoeOficial Жыл бұрын
Awesome content, tks a lot!!!
@elsonbejleri4785
@elsonbejleri4785 7 ай бұрын
I demand to see what's behind those D&D files!
@wolanus
@wolanus 3 жыл бұрын
Great video, thanks!
@murtazahuzefa5086
@murtazahuzefa5086 2 ай бұрын
I ❤ your videos ❤❤❤❤❤
@joelmalepe4862
@joelmalepe4862 3 жыл бұрын
Thanks Bro, I always checkout your videos to finally understand these kind of topics. I would really love to meet the person who has hit the dislike button.
@slavkomag
@slavkomag 2 жыл бұрын
Hey, Bro! Could you (or any other of you folks grasping big Oh notation) explain, why inserting and deleting is O(1) and not O(n)? Would'nt the algorithm need to traverse the nodes to find the appropriate place to change the addresses for the newly created element?
@Russ2049
@Russ2049 Жыл бұрын
I'm still learning, but i've also been thinking about this, and i think you're right. The time complexity of O(1) for deleting and adding data in a linked list is only at the beginning and end of the list, because there is no need to shift elements like in an array. However, the time complexity becomes linear, O(n), if the element is somewhere "inside" the list. Because linked lists do not have indexes (that's the whole point), the element you want to delete or change within a list has to be found first, and as i understand, it is done by traversing the list. You have to go through all the elements of the list until the end or until a matching element is found. So the main advantage of linked lists over arrays is that they can shrink and grow faster if elements are added or deleted from the beginning or end of a list.
@paul_tee
@paul_tee Жыл бұрын
@@Russ2049also learning but I think deleting at end is O(n) not O(1) since you need to transverse through the whole thing to know where the new end is. Deleting at the beginning is definitely O(1) though
@nimaMotlagh-z8c
@nimaMotlagh-z8c 6 ай бұрын
Perfect
@gameGXT
@gameGXT 2 жыл бұрын
super
@codewithsmoil4098
@codewithsmoil4098 3 жыл бұрын
You are doing good... I'm your new subscriber ^_^
@amitaimyers9342
@amitaimyers9342 3 жыл бұрын
Thank you Bro!
@solonton6341
@solonton6341 2 жыл бұрын
Thanks for this great video. Can you implement the linked list from scratch?
@meeknkosi
@meeknkosi 3 жыл бұрын
am glad to be your bro !
@goddesscoder
@goddesscoder 2 ай бұрын
BRO!! THANK YOU SOOOO MUCH!!! I understand😭
@mohdsaleh3516
@mohdsaleh3516 3 жыл бұрын
Thx Bro for all your videos, i love them all, plz finish as much as u canbon data structure, then plz java design patterns, generics, functional prog. in java (lambda expressions), and parallel programing. Anything you like...
@leruleru8723
@leruleru8723 Жыл бұрын
Thank you so much bro💫life saving💓
@soicooc3500
@soicooc3500 9 ай бұрын
thanks , very clear
@nightcrawler2126
@nightcrawler2126 Жыл бұрын
My exam's tomorrow 💀thank you man
@longbeachgriffy4548
@longbeachgriffy4548 8 ай бұрын
Self learner here I do driver development for fun and I could vouch u are him
@ardacakr6464
@ardacakr6464 3 жыл бұрын
thank you.
@houssseinzekra
@houssseinzekra Жыл бұрын
better from the best coder i know . would you please consider doing it in pytohn
@murilosilvestre7736
@murilosilvestre7736 3 жыл бұрын
great, thank you, bro!
@DavidOwen-e7s
@DavidOwen-e7s 5 ай бұрын
random comment to help the algorithm :)
@fanforever9916
@fanforever9916 Ай бұрын
Thanks a Lott!!!!!!!!!. brooooooo
@MrLoser-ks2xn
@MrLoser-ks2xn 2 жыл бұрын
Thanks
@ryz3929
@ryz3929 4 ай бұрын
u r a legend
@manzil.8105
@manzil.8105 Жыл бұрын
king , that is what you are , nothing more , nothing less
@TheEvertonDias
@TheEvertonDias Жыл бұрын
Thanks, Bro!
@mindlessmeat4055
@mindlessmeat4055 Жыл бұрын
Love your videos. They are so good. Did you add and remove an element but didn't show add working?
Dynamic Arrays 🌱
24:22
Bro Code
Рет қаралды 100 М.
Introduction to Linked Lists (Data Structures & Algorithms #5)
18:47
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 22 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 35 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
LinkedList vs ArrayList in Java Tutorial - Which Should You Use?
11:43
Coding with John
Рет қаралды 608 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 827 М.
Learn Hash Tables in 13 minutes #️⃣
13:26
Bro Code
Рет қаралды 387 М.
you will never ask about pointers again after watching this video
8:03
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 971 М.
Learn Quick Sort in 13 minutes ⚡
13:49
Bro Code
Рет қаралды 392 М.
Learn Queue data structures in 10 minutes 🎟️
10:07
Bro Code
Рет қаралды 134 М.
Learn Big O notation in 6 minutes 📈
6:25
Bro Code
Рет қаралды 281 М.
Learn Binary Search in 10 minutes 🪓
10:04
Bro Code
Рет қаралды 125 М.
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН