Linked Lists for Technical Interviews - Full Course

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • Learn how to solve linked list problems for coding challenges and interviews.
    ✏️ This course was developed by Alvin Zablan from Structy. Check out his channel: / alvintheprogrammer
    🔗 Study more data structures and algorithms with Alvin in his complete course: structy.net/
    ⭐️ Course Contents ⭐️
    ⌨️ (0:00:00) Course Introduction
    ⌨️ (0:01:09) What is a Linked List?
    ⌨️ (0:09:22) Linked List Traversal
    ⌨️ (0:23:36) Linked List Values (structy.net/problems/linked-l...)
    ⌨️ (0:33:10) Sum List (structy.net/problems/sum-list)
    ⌨️ (0:42:31) Linked List Find (structy.net/problems/linked-l...)
    ⌨️ (0:51:03) Get Node Value (structy.net/problems/get-node...)
    ⌨️ (0:59:32) Reverse List (structy.net/problems/reverse-...)
    ⌨️ (1:09:50) Zipper Lists (structy.net/problems/zipper-l...)
    🎉 Thanks to our Champion and Sponsor supporters:
    👾 Raymond Odero
    👾 Agustín Kussrow
    👾 aldo ferretti
    👾 Otis Morgan
    👾 DeezMaster
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: freecodecamp.org/news

Komentáře • 222

  • @ragsbigfella
    @ragsbigfella Před 2 lety +241

    I love Alvin's way of teaching. I loved his Dynamic programming video. Please ask him to make some more videos like Graphs and Trees.

  • @lilyh4573
    @lilyh4573 Před 2 lety +75

    I've watched sooooooooo many CZcams tutorials - this guy is legit the best teacher I've come across so far! Very clear. Thank you so much Alvin

  • @Jamesxoxo89
    @Jamesxoxo89 Před rokem +2

    Started learning linked list this week and could not understand the code for it at all until this video... Super appreciative, this community exists.

  • @immythic8351
    @immythic8351 Před 2 lety +28

    Bro you explain so good that i've been able to perform the tasks without watching the whole video. Just got the idea and solved it by myself. I love you, Alvin. Happy New Year, mate!

  • @morenomt27
    @morenomt27 Před rokem +4

    Thank you for this Alvin. I had a hard time refreshing linked list by watching countless tutorials and I can't understand why I can't move on with problems. While you are explaining, I am able to answer problems!

  • @RahulD600
    @RahulD600 Před 2 lety +12

    I love Alvin's way of teaching! He's really a master! Thank you very much!

  • @tf1n
    @tf1n Před 2 lety +6

    Best video on LL’s that I’ve seen. Thank you, Teacher Alvin!

  • @chukwunta
    @chukwunta Před rokem +10

    This is all you need to learn about linked-list. This is my fifth time viewing and I always seem to comeback and learn something new. It is such an amazing resource. Thanks @Alvin

  • @omarkyon1933
    @omarkyon1933 Před 2 lety +4

    Really cool to see you here Alvin. Great explanations as usual

  • @m.y.7230
    @m.y.7230 Před 4 měsíci +1

    Hands down the best explanation for linked list. It finally clicked on me after 3 days banging my head against the wall. His algorithms are way more intuitive, both iterative and recursive versions, much much more than what other instructors talked about. Thank you!

  • @user-mi2kk5fr8n
    @user-mi2kk5fr8n Před 15 dny

    This is the only programming video I watched from start to finish with one sitting and I clearly understood LinkedList. Thank you Alvin!

  • @doctype7430
    @doctype7430 Před 2 lety

    I like the way Alwin simplifies the concepts and problems. learnt a lot. Thanks

  • @maozbenkalif598
    @maozbenkalif598 Před 2 lety +23

    08:25 one small correction, the order of inserting a node to a linkedlist is that the node you wish to enter has to point first to the node and then you have to take node b to point on node q, if you start by pointing b to q first you will lose all the data of c and d. Great video !! loved it

    • @ehabahmedyassen
      @ehabahmedyassen Před rokem +2

      yup, q.next = c then b.next = q

    • @pharaoh9483
      @pharaoh9483 Před rokem +1

      Oof, hate when people teach wrong things, they should have re edited the video

  • @skitzhills
    @skitzhills Před rokem +1

    Alvin you are the best programming sensei. This Linked List tutorial is just ridiculously good...

  • @Pupu._
    @Pupu._ Před rokem +2

    Alvin is so to the point and voice is good to hear 🙌

  • @sanjaypaudel3296
    @sanjaypaudel3296 Před 2 lety

    Alvin we need more of you guys. Grow up your channel. You are a hero

  • @anandvardhan2514
    @anandvardhan2514 Před 2 lety +4

    Your videos are awesome..Saw your video on Dynamic programming and since then i am not facing any problem in solving such questions.

  • @talios6824
    @talios6824 Před 5 měsíci

    Absolutely the best tutorial video on linked lists. Thank you so much, Alvin! Fantastic teacher.

  • @madhubalajayakumaran9340
    @madhubalajayakumaran9340 Před 2 lety +2

    loved the explanation! Though I knew all these concepts before, I just watched anyway.

  • @zeynepdagci2801
    @zeynepdagci2801 Před 2 lety +10

    your courses're amazing!! I have an interview with google in a couple of hour, I hope your courses work for me !!!

  • @sriram-uu6yd
    @sriram-uu6yd Před 2 lety +5

    Trust me, I was searching for an hour yesterday to find a good resource to learn Linked Lists. Thank you, FCC.

  • @samihk1
    @samihk1 Před 2 lety +10

    Completed complete video in one go, took me 4 hours.
    Thanks Alvin!!
    so on point.

    • @JustinK0
      @JustinK0 Před 2 lety +1

      then you forget it the next day haha

    • @ezeanichucks3728
      @ezeanichucks3728 Před rokem

      @@JustinK0 nope. It sticks with you onwards.
      The concepts might be new, but a programmer shouldn't have any problem catching on.
      All of these are just basic OOP codes deployed in novel ways

    • @madman3727
      @madman3727 Před 8 měsíci

      @@ezeanichucks3728 even as programmar you should just split it in hour long study and do continue next day. Whenever I watch in one go I usually forget some important things but when I learn them each day slowly they straight goes to my long term memory

    • @whetfaartz6685
      @whetfaartz6685 Před 4 měsíci

      ​@@JustinK0practice.. inserting.. deleting.. repeating or writing pseudo-code or writing it down on paper and it'll stick with you HARD

  • @tonyseben
    @tonyseben Před rokem +2

    For the iterative Zipper implementation, we need a null check for head1 (ideally for head2 as well). if(head1 === null) return head2; if(head2 === null) return head1;

  • @gautamgunecha5963
    @gautamgunecha5963 Před 2 lety +3

    His tutorial are pure 💎

  • @alexbolych2366
    @alexbolych2366 Před 5 měsíci

    Thank you very much. The best explanaition of js linked lists

  • @kennyfully88
    @kennyfully88 Před 3 měsíci

    I love this! I never knew exactly what is a linked list until now and this gives me a ton of awesome ideas! Honestly, thank you very much!

  • @Guru_Bloke
    @Guru_Bloke Před 2 lety

    Thanks. This is top notch. On my way to subscribe. Frankly best content ever. Quick and eloquent.

  • @kuxnal
    @kuxnal Před 2 lety

    The video that I had been searching. Thank you so much

  • @pankkajsen
    @pankkajsen Před 2 lety +6

    Given a blind like because of Alvin👍…and added to my “Immediate watch” list 😀

  • @abolfazljahangir1651
    @abolfazljahangir1651 Před 3 měsíci +1

    You are amazing Alvin! I've learned a lot from you🙌

  • @bruhmoment3731
    @bruhmoment3731 Před rokem +1

    what an excellent teacher!

  • @johnnyf1624
    @johnnyf1624 Před 2 lety

    i rlly like the way you explain the problem step by step.

  • @eshw23
    @eshw23 Před rokem

    Amazing, this guy is dynamic and engaging

  • @japarjarkynbyek8494
    @japarjarkynbyek8494 Před 9 měsíci

    Love it as always! Big kudos!

  • @zeganikhalid9730
    @zeganikhalid9730 Před rokem +1

    man this is the best explanation ever.

  • @DrewOsmond
    @DrewOsmond Před 2 lety +1

    Great video Alvin!

  • @user-tl5cy1rb8v
    @user-tl5cy1rb8v Před 2 měsíci

    I love the way he explain and able to grasp things even though I am a beginner.

  • @intcoder
    @intcoder Před 2 lety

    Awesome Video!!! thanks for the detail explanations.

  • @stanleyjekwu6810
    @stanleyjekwu6810 Před 2 lety +2

    The best I have seen so far...Thank you so much... I just checked your platform to make a purchase to go deeper but I couldn't find C# language option (that's my core language).
    I don't know if there will be room for that in the future?
    I greatly benefited from this JavaScript version.

  • @sandeepchandupatla7832
    @sandeepchandupatla7832 Před 11 měsíci

    Completed watching this tutorial, very informative, thanks a lot 🎉😊

  • @vishaloza6981
    @vishaloza6981 Před 2 lety

    thank you! needed this video!

  • @CHITUS
    @CHITUS Před 2 lety

    Bro your research and best way of analysis is amazing.
    Who else find this list helpful ️️

  • @a_maxed_out_handle_of_30_chars

    seeing alvin puts a smile on my face :)

  • @AnkurSharma-hf9jn
    @AnkurSharma-hf9jn Před rokem

    Best explanation ever Now I'm much more confidence writing link list problem.

  • @shyamprakashm6325
    @shyamprakashm6325 Před 2 lety +1

    What a co-incidence .tomorrow we have a amazon technical interview , hope It would help.

  • @ayushmishra6740
    @ayushmishra6740 Před 3 měsíci

    Smooth Explanation.

  • @Sz-hi7wj
    @Sz-hi7wj Před 2 lety +1

    welcome back Alvin!

  • @rem.kudusov
    @rem.kudusov Před 10 měsíci

    Thank you, bro!

  • @ahmedhamdytube
    @ahmedhamdytube Před 2 lety

    Alvin you are a great teacher.

  • @79Nardo
    @79Nardo Před 2 lety +1

    Excellent!

  • @RobMapes
    @RobMapes Před 2 lety

    Fantastic!!!

  • @PrashantNigam
    @PrashantNigam Před 2 lety

    My dude is back!!!

  • @myrusEW
    @myrusEW Před 11 měsíci +10

    I just realized watching theory tutorials in other languages actually makes learning so much more intuitive, since you can't just blindly copy. You're forced to understand how your language works, and you're forced to implement those ideas without really being able to "cheat". Wow. I'm gonna start watching C tutorials and do them in python. I'm about to hit 10x developer once I understand all this

    • @servantofthelord8147
      @servantofthelord8147 Před 9 měsíci

      This is a very good point. I never realized this. This whole time I was trying to avoid tutorials in different languages, not realizing that they were the key to helping my solidify my understanding. Good observation!

    • @madman3727
      @madman3727 Před 9 měsíci +1

      same I was forced to code this in my learning language and I was surprised to see how quickly I learned

  • @monadastar9393
    @monadastar9393 Před 2 lety

    great help! thank you

  • @gopalks6437
    @gopalks6437 Před 2 lety +1

    Amazing !

  • @foravidalalsharma1291
    @foravidalalsharma1291 Před 2 lety +8

    I wish you had Java as one of the programming languages, but I still loved your course and was able to interpret everything in Java because of how you explained the algorithms, it was so simple to even understand recursive, something I always mess up. Thank you!!

  • @Luke-gr6dg
    @Luke-gr6dg Před 5 měsíci

    I love that you said "A"'s next is "B". That makes link list much easier to conceptualize than other sources which overly complicate it.

  • @orangekitty5192
    @orangekitty5192 Před 2 lety

    Great teacher!

  • @thelastminutetrade
    @thelastminutetrade Před 2 lety +10

    Bro your research and best way of analysis is amazing.
    Who else find this list helpful ❣️❣️

  • @rebeccaburch3334
    @rebeccaburch3334 Před rokem +2

    for zipperlist iterative approach, when you add the rest of the list that is leftover tail isn't reassigned to be the new tail. In this case, you're just using "tail" as a pointer to the current end of the constructed list. And tail isnt assigned at all in the recursive solution. Would there be an extra step to iterate through the leftover list to the end and reassign tail? Thanks for your great videos 🔥🔥🔥

  • @servantofthelord8147
    @servantofthelord8147 Před 9 měsíci

    Thank you!

  • @johnbright8172
    @johnbright8172 Před rokem

    Thank you so much. You're the best!!!!

  • @saplay3372
    @saplay3372 Před 2 lety +1

    All the members of your department are great

  • @pauzhou8639
    @pauzhou8639 Před 10 měsíci +2

    omg who is this guy? He has the best algor interview videos !!

  • @aidardusukov2263
    @aidardusukov2263 Před rokem

    Thanks a lot!!!

  • @marcoEnBici
    @marcoEnBici Před 2 lety

    Beautiful!

  • @kehinde10100
    @kehinde10100 Před 2 lety

    Best teacher ever!!!

  • @jimmykitty
    @jimmykitty Před 2 lety +1

    As Always, Thanks a Trillion.....
    ♥️♥️♥️♥️♥️♥️♥️♥️🌿🌿🌿🌿🌿🌿

  • @shreysharma726
    @shreysharma726 Před rokem

    thanks ...appreciate it

  • @zfarahx
    @zfarahx Před 2 měsíci

    Thanks!

  • @motlatsimoea5615
    @motlatsimoea5615 Před 11 měsíci

    Nice!

  • @sampathsai5509
    @sampathsai5509 Před 2 lety +9

    I love the way you teach 😍.
    Please create a course on Backtracking.

  • @dzni9061
    @dzni9061 Před rokem

    you have saved my life

  • @alexroy4235
    @alexroy4235 Před rokem

    Excellent explanation

  • @havefun5519
    @havefun5519 Před 2 lety

    Thanks man, your recursive method is great

    • @havefun5519
      @havefun5519 Před rokem

      2nd watched.

    • @havefun5519
      @havefun5519 Před rokem

      Last zipper recursive method is not easily to understand.

  • @eidmone8684
    @eidmone8684 Před 2 lety

    ALVIN the GOAT!

  • @mishkathossain2984
    @mishkathossain2984 Před 2 lety

    Alvin the boss is back in the hood!!!!!!

  • @elliptictree
    @elliptictree Před 9 měsíci +1

    Good job.

  • @darkness35869
    @darkness35869 Před rokem

    muchas gracias !!!

  • @heybibleefan
    @heybibleefan Před 9 měsíci

    BEST LINKEDLIST VIDEO EVER

  • @hi-tk4hu
    @hi-tk4hu Před rokem

    Best video on LL for beginner

  • @tomashoracek7187
    @tomashoracek7187 Před 5 měsíci +1

    Awesome vids helping me with my uni subject Foundations of Programming, they give us 15 small programming exercises every week for points that count to final mark and also credit and they gave us exercises such as programm ringbuffer using linked list, program queues and stack using linked list. Merge two ordered linked lists and so on xd

  • @kamaboko1
    @kamaboko1 Před 2 lety

    Hands down the best algorithm explanations. $ Structy purchase.

  • @sohamali7018
    @sohamali7018 Před 2 lety

    Thankyou Very Very Much🙂🙂🙂🙂🙂🙂

  • @rashidselemani475
    @rashidselemani475 Před rokem

    The way you explain the link list, even a foolish can understand it. Thanks a lot 😊

  • @adeelzahid9622
    @adeelzahid9622 Před 2 lety +1

    very appreciated .. 😎🌹✌👍👌

  • @teodoratechie
    @teodoratechie Před rokem

    best teacher :DD

  • @Eslam-ig2gf
    @Eslam-ig2gf Před rokem

    Thanks

  • @gunratnamore4250
    @gunratnamore4250 Před 2 lety +3

    Helpful always 👍

  • @saurabhnambiar5514
    @saurabhnambiar5514 Před 2 lety +1

    The Dynammic programming one was a blockbuster hence m here cheer

  • @ar2zee
    @ar2zee Před 2 lety +1

    Thank you so much for the course , as always it's awesome!
    Can somebody help me please and explain if instead of creating variable `currentHead` inside the function we'll just work with argument `head` and inside while loop just write `head = head.next`
    It's working in both cases but I want to see if it's any downside in this approach or something like that.
    Thanks in advance !

    • @Rajmanov
      @Rajmanov Před 2 lety +1

      it's more complicated to read because of the cognitive overload, so for readability purposes it losses points.

  • @netsprogramstudio
    @netsprogramstudio Před 2 lety

    I love this channel

  • @farhanzaman8631
    @farhanzaman8631 Před 2 lety

    Hey I am still getting used to doing linked list questions can you please tell me why you are returning head1 instead of tail ? Doesn’t tail contain all of the node in zigzag order

  • @immythic8351
    @immythic8351 Před 2 lety

    now i'm gonna crush this ;)

  • @leowang6283
    @leowang6283 Před 2 lety

    cool , i am just wonder how did you do such a wonderful explation of animation ?

  • @iamarnabdey
    @iamarnabdey Před 2 lety

    Hey, you could have declared the array outside the function also and then you can use a single array for recursion.

    • @YuriG03042
      @YuriG03042 Před rokem +2

      nope, don't write impure functions

  • @sharangkulkarni1759
    @sharangkulkarni1759 Před 2 lety +1

    last zipper recursion was awesome beauty

  • @MrKokomaniaco
    @MrKokomaniaco Před 2 lety

    Shouldn't a "null" node return undefined in JS? if the property doesn't exist

  • @osyman782
    @osyman782 Před 2 lety

    Quick question is it okay to reverse using a stack?

  • @parmachine470
    @parmachine470 Před rokem

    Do you just use a wrapper function in your course when you have visited or memo?