Linked Lists - Singly & Doubly Linked - DSA Course in Python Lecture 3

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии •

  • @GregHogg
    @GregHogg  5 месяцев назад +5

    Master Data Structures & Algorithms For FREE at AlgoMap.io!

  • @ahmedzz4754
    @ahmedzz4754 6 месяцев назад +24

    I bet my life that this would be the most informative and non repetitive DSA course on RUclips

    • @GregHogg
      @GregHogg  6 месяцев назад +2

      Haha thank you! It seems to be going well so far

  • @hema4k358
    @hema4k358 5 месяцев назад +5

    I love the fast paced explanation, it's non repetitive flow of new information, you definitely my new favorite gregg 😁

  • @spidey2468
    @spidey2468 6 месяцев назад +8

    I'm currently busy with personal stuff but Pls keep it up definitely I'm going to brush up your series for DSA prep ❤

  • @muhammadrao1246
    @muhammadrao1246 6 месяцев назад +8

    Back then i have done data structures in c++. In python it is lot more easier to understand and implement 😂. Thanks to you! ❤

    • @GregHogg
      @GregHogg  6 месяцев назад +2

      Yes it definitely is haha

  • @Youssef-o9y1r
    @Youssef-o9y1r 3 месяца назад

    I understood the code but didn't understand the concept prior to this video, now I do. Tysm

  • @bababooey4772
    @bababooey4772 16 дней назад +1

    this is exactly what i needed , thanks a lot

  • @gamalserag2045
    @gamalserag2045 6 месяцев назад +1

    That's Awesome man, Thank you for such high-quality content.

    • @GregHogg
      @GregHogg  6 месяцев назад +2

      You're very welcome!

  • @MaharsheeKShah
    @MaharsheeKShah 6 месяцев назад +1

    Great video. I understand it now 100%

    • @GregHogg
      @GregHogg  6 месяцев назад

      Glad to hear it!

  • @ahmedshehata7783
    @ahmedshehata7783 6 месяцев назад +1

    Great Explanation
    Keep up the good work 👏

    • @GregHogg
      @GregHogg  6 месяцев назад +1

      Thank you!!

  • @khorshedkhorshed9137
    @khorshedkhorshed9137 6 месяцев назад +2

    Thanks for your tutorial you are great ❤

    • @GregHogg
      @GregHogg  6 месяцев назад

      Thanks so much!!!

  • @Andrew_N_G
    @Andrew_N_G 5 месяцев назад +4

    Hey dude you have great teaching skills.but i have a question will you cover all the topics of dsa in this coures?

  • @Said-uz4wz
    @Said-uz4wz 2 месяца назад +2

    I have a question, in the insert_at_the beginning function for the doubly linked list, why are you passing the tail, if you just return it and do not use it in the function, can you not skip it?

    • @salin5273
      @salin5273 Месяц назад

      I had the same question. If u remove tail nothing will change. It’s useless. Maybe this code structure is needed in any leetcode problems, I don’t know…

    • @gabrielassuncao1319
      @gabrielassuncao1319 Месяц назад

      kind of useless

  • @starboy9562
    @starboy9562 5 месяцев назад

    Thank you very much! Very informative

  • @richardpro8927
    @richardpro8927 6 месяцев назад +1

    Awesome ❤

  • @devgiri4730
    @devgiri4730 2 месяца назад

    hey Greg best explanation i have got so far . I have a question , Is this fundamental DSA theory playlist is completed for learning complete data structures?

  • @AlborzBorzoo
    @AlborzBorzoo 6 месяцев назад +1

    thanks for such clear explanation
    but what i fail to understand is that why is knowing about such things needed?
    seeing as they arent directly implemented in any programming language, what will they do that something like an array cannot accomplish? and why do they matter?

    • @anaranyosarkar2695
      @anaranyosarkar2695 5 месяцев назад +2

      That's a very pertinent question, and it's something that even I have spent time thinking about.
      To be exact, the difference comes in the storage and access of data. For example, take insertion. An array takes O(n) complexity for insertion whereas a LinkedList takes O(1). This doesn't make a difference when the lengths are small, but for bigger input sizes, it has a significant difference in processing time which might make a certain algorithm much faster or slower depending on which data structure you are using. Plus if you're into solving problems on platforms like LeetCode or CodeForces, TLEs (Time Limit Exceeds) are exceedingly common. Those can be avoided by using appropriate data structures for appropriate purposes.
      I hope that answers your question!

  • @ProCodesMedia
    @ProCodesMedia 2 месяца назад

    Great ❤

  • @physicsfaith
    @physicsfaith 5 месяцев назад

    Learning!

  • @rydmerlin
    @rydmerlin 4 месяца назад

    Why does insert_at_beginning need to take tail when all it does is return it.

  • @helloworldcsofficial
    @helloworldcsofficial 4 месяца назад

    Thanks!

  • @SemesterAtSeaHopeful
    @SemesterAtSeaHopeful 4 месяца назад

    Why do nodes start at 1 but lists start at 0?

    • @gauravswami6213
      @gauravswami6213 3 месяца назад

      they don't the position we use in nodes is just for our understanding it isn't there actually

    • @JAVA_SCRIPT-j5j
      @JAVA_SCRIPT-j5j 2 месяца назад

      Node doesn't start at 1 we access every node by the pointer(which stores address) which is head in this video .
      Basically head it stores or points the address of the first node in linked list, for better understanding learn cpp there you can learn in depth

  • @verlder
    @verlder 2 месяца назад

    thanks

  • @AlborzBorzoo
    @AlborzBorzoo 6 месяцев назад +4

    thanks for such clear explanation
    but what i fail to understand is that why is knowing about such things needed?
    seeing as they arent directly implemented in any programming language, what will they do that something like an array cannot accomplish? and why do they matter?

    • @ahmedzz4754
      @ahmedzz4754 6 месяцев назад +2

      @@AlborzBorzoo you may make a stack implementation with an array in some language , however if you tried to do the same thing with the queue it will work but it would be way slower as in the array in order to pop elements from the left all the other elements in the array would be shifted therefore taking O(n) complexity unlike the linked list implementation of the queue