HackerRank - Reverse Linked List | Full solution with visuals | Study Algorithms

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

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

  • @vardhan5939
    @vardhan5939 25 дней назад +1

    u deserve 1 million plus subscribers bro ❤

  • @shiva6390
    @shiva6390 2 месяца назад +1

    sir u are far better than teachers with paid courses

  • @technicalguy.
    @technicalguy. Год назад +7

    No doubt you're an excellent teacher! ❤

  • @Deadskull2908
    @Deadskull2908 2 месяца назад +1

    Neatly explained without any confusion

  • @Sranju23
    @Sranju23 Год назад +5

    At the end u can just return prevNode without doing head = prevNode... btw nice tutorials 😃

  • @syw512
    @syw512 2 года назад +3

    Really like your explanation!! I’m new to programming,you make it really easy for beginners to understand. 👍👍👍

    • @nikoo28
      @nikoo28  2 года назад +1

      Glad I can help you out

    • @syw512
      @syw512 2 года назад +1

      @@nikoo28 looking forward to see more of your videos.

  • @chhoturaj-c6u
    @chhoturaj-c6u Год назад +3

    great explanation

  • @TarunSharma-eg7kl
    @TarunSharma-eg7kl 3 года назад +2

    Great explanation!

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

    Very helpful video thank you bro

  • @pavanshanmukh6502
    @pavanshanmukh6502 10 месяцев назад

    Thank you for your wonderful explanation

    • @nikoo28
      @nikoo28  9 месяцев назад

      You are welcome!

  • @Abhaykumar-lw7nr
    @Abhaykumar-lw7nr 4 месяца назад

    nice explanation thanks man

  • @riyapawar4569
    @riyapawar4569 Год назад +1

    Great ❤❤ too good

  • @snehalshelar7778
    @snehalshelar7778 3 месяца назад +1

    Why we cant take only ptr as a new node ...why we need to take 2 new nodes ?

  • @Unknown373d
    @Unknown373d 7 месяцев назад +1

    nice explanation

  • @xtremeinnovations8599
    @xtremeinnovations8599 Год назад +2

    Thanks!

  • @KeerthiNarayan-c4o
    @KeerthiNarayan-c4o 8 месяцев назад +1

    I'm stuck in last iteration you skipped that part please explain 12:09

    • @nikoo28
      @nikoo28  8 месяцев назад

      in the last part, we are just reallocating the head, such that the linked list is actually reversed. Follow the pointers and you will understand.

  • @reactninja6567
    @reactninja6567 2 года назад +2

    thanks a lot ! This was easy to understand.I took a udemy course on dsa But they don't teach with diagrams like you do. Please if you any paid subscription let me know i would buy for sure. Also if possible can u suggest some good resources(books or courses) which are more diagram oriented rather than just running a code .

    • @nikoo28
      @nikoo28  2 года назад +2

      Thank you so much for your feedback and motivation. Right now all my content is only on RUclips and the website. Sure, if I add more subscription based course, you will know about it.

    • @reactninja6567
      @reactninja6567 2 года назад +1

      @@nikoo28cool! any visual based learning for DSA book/course.can u refer? that would be much helpful.

  • @sushant3530
    @sushant3530 3 года назад +1

    great

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

    I don't understand the swapping of the pointers☹ I watched the video over and over, still don't get it.

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

      What part are you facing a problem with?

  • @johncho9160
    @johncho9160 Год назад +1

    why do you have to initialize the reversedList with Integer.MIN_VALUE? the value we assign does not matter since we are returning reversedList.next at the end anyway?

    • @nikoo28
      @nikoo28  Год назад

      you are correct...it is just a dummy node. You can assign any value to it. It is just for utility.

  • @MaulikDodiaHollywoodMovieLover
    @MaulikDodiaHollywoodMovieLover 9 месяцев назад

    currNode.next = preNode; ----> Is this statement only assign preNode's value to currNode's next node which is 8. and If this statement is assigning values then how ListNode nextNode = currNode.next; ---> this statement giving us next node. Confusing!

    • @nikoo28
      @nikoo28  9 месяцев назад

      did you go over the explanation part or went straight to the code?

    • @MaulikDodiaHollywoodMovieLover
      @MaulikDodiaHollywoodMovieLover 9 месяцев назад

      @@nikoo28 Yes, I watched it. Didn't get so I asked! Never mind.