How To Reverse A Singly Linked List | The Ultimate Explanation (Iteratively & Recursively)

How To Reverse A Singly Linked List | The Ultimate Explanation (Iteratively & Recursively)

Back To Back SWE

5 лет назад

160,261 Просмотров

Ссылки и html тэги не поддерживаются


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

Mamood Shaban
Mamood Shaban - 13.11.2023 15:26

That was really helpful man. I'm grateful! Keep up with the good work!

Ответить
Goktug Parlak
Goktug Parlak - 07.11.2023 13:52

I don't understand when the first iteration prev was NULL and what happens when we do curr.next=prev; prev=curr; what this do ıs also NULL pointer has block of memory and we are pointing to it ?

Ответить
stumbino
stumbino - 03.10.2023 02:29

Keep up the good work! Doing a great job on the content.

Ответить
Mpho Murashiwa
Mpho Murashiwa - 27.09.2023 23:38

Thank you 🤍🤍🤍

Ответить
bang bang
bang bang - 11.08.2023 16:50

you got the concept right but you're missing alot of information on when the going backwards in the stack starts, the first iteration just returns it second step back next->next is not valid and then the third iteration back it starts setting everything.

Ответить
Blood Bath and Beyond - Pop Goes Metal Covers
Blood Bath and Beyond - Pop Goes Metal Covers - 08.07.2023 06:49

I feel like this video needs a mosh pit, it's so intense hahaha

Ответить
Irais Valenzuela
Irais Valenzuela - 10.05.2023 21:28

Thanks for the video! You simplified this so much for me!

Ответить
joe haynes
joe haynes - 08.05.2023 20:33

Had to rewind a lot but first video that worked to understand it :)

Ответить
Albert Brannan
Albert Brannan - 20.04.2023 04:52

You sir are awesome!

Ответить
RathanCode
RathanCode - 01.04.2023 12:53

well explained

Ответить
Travis McKinstry
Travis McKinstry - 20.02.2023 17:29

One of the more clear explanations of this god forsaken problem. Thank you

Ответить
Supamdeep Bains
Supamdeep Bains - 16.02.2023 03:58

my homie always there to help me with data structures

Ответить
我要當個好傑寶耶
我要當個好傑寶耶 - 13.02.2023 01:14

you're amazing dude! Thanks a lot!

Ответить
iseeflowers
iseeflowers - 03.02.2023 11:01

Very intense and a lot of excitement but the squeaky sounds of your shoes makes it difficult to hear and focus.

Ответить
Mohan m
Mohan m - 25.01.2023 09:12

great explanation....I am able to visualize the recursion while you explain

Ответить
Helena Shatalova
Helena Shatalova - 01.12.2022 06:09

Finally, I got it! Thank you so much for your video! Your channel is a hidden jam!

Ответить
Zack
Zack - 30.11.2022 15:55

ily

Ответить
Parviz Rahimli
Parviz Rahimli - 26.11.2022 17:55

f4ck recursion

Ответить
Léslio Nhapulo
Léslio Nhapulo - 05.11.2022 10:36

Thank you so much bro

Ответить
Mohammad Khizar
Mohammad Khizar - 19.10.2022 01:14

this was the best explanation

Ответить
MuscleTeamOfficial
MuscleTeamOfficial - 15.10.2022 23:06

Am I watching an algo explanation or a basketball game Mr. Squeaks?

Ответить
teddy fatim diallo
teddy fatim diallo - 13.10.2022 15:42

Very helpful video. However, if you could go slower and in a calmer manner, it would be more beginner friendly!

Ответить
sanghun Lee
sanghun Lee - 09.10.2022 10:19

Life saver bro
Thanks for your kind explanation

Ответить
Spiritual Gyan Hindi
Spiritual Gyan Hindi - 24.09.2022 16:32

Thnx! Finally, I got this logic of returning back after top to bottom😄

Ответить
Samuel Ng
Samuel Ng - 05.09.2022 22:12

really love his way to explain this question🤣
he is so enthusiastic and energetic!

Ответить
Zion Roar
Zion Roar - 31.08.2022 18:16

Thank you

Ответить
Nuke
Nuke - 24.08.2022 17:26

took me sometime for me to digest. thank you.

Ответить
Fantasy
Fantasy - 09.08.2022 23:50

this is the best explanation for listNode reverse! Really appreciate it !!

Ответить
Kiran Surdhar
Kiran Surdhar - 06.08.2022 22:34

I loved this video and it was incredibly helpful! I have a question though; at the end of the recursive solution, wouldn't you have a mini (partial?) circular list between your final two values?

Where given
1 --> 2 --> 3 --> null
you end up with
3 --> 2 <--> 1? Where 1's next value is still 2 instead of null?

Ответить
Phantom4 DJI
Phantom4 DJI - 31.07.2022 20:02

this was awesome and helped me out a lot. Thank you!

Ответить
Ken Chen
Ken Chen - 26.07.2022 05:21

epic explaination.

Ответить
Raz
Raz - 09.07.2022 09:50

You explained it very well

Ответить
deepesh rathod
deepesh rathod - 29.06.2022 09:11

Damn! this is the best video I found. It just cleared all my doubts for reversing a linked list recursively. Thanks for the video.

Ответить
Jared
Jared - 23.06.2022 05:45

Yoooo that went craazyyyy

Ответить
Josh J
Josh J - 18.06.2022 01:50

Yea I subscribed. You had me on the edge of my seat the entire video like I'm watching a suspenseful movie.

Ответить
Max Shrike
Max Shrike - 08.06.2022 19:42

Thank you man, helped me to understand this f***ing recursive approach

Ответить
Jiadong Yu
Jiadong Yu - 29.05.2022 15:26

I found myself smiling as I watched this video because your passion and enthusiasm really shone through. Great explanation and good work!

Ответить
Faisal Shaikh
Faisal Shaikh - 15.05.2022 14:58

can anyone help me with javascript solution

Ответить
Dare
Dare - 04.05.2022 23:40

good job , ty for explain

Ответить
Naleege Is Powa
Naleege Is Powa - 03.05.2022 08:01

Lay off the adderall.

Ответить
Sam Smith
Sam Smith - 27.04.2022 21:55

Great Teacher man! Finally got the recursion when you could help me visualize going downwards then backup. Thank you man!!

Ответить
Gazala
Gazala - 21.04.2022 10:10

This is literally the best explanation I have come across🙌

Ответить
Sonu Singh
Sonu Singh - 17.04.2022 15:25

You explain so well. Thank You!❤❤

Ответить
EagerEggplant
EagerEggplant - 07.04.2022 12:50

How is there so many people trying to solve this problem lmao

Ответить
Ryan
Ryan - 03.04.2022 02:52

I finally understand this. Thank you.

Ответить