This is one of the most (personally) recommended explanation for Singly Linked List I've found.\ Very concise and straight to the point with little to no waffling around the topic.
Love your explanation and audio quality! One thing, when I tried to code the reverseList function, I needed to pass in "list" and then set "head" to "list.head". Otherwise, my console would tell me "head.next" is undefined.
Awesome tutorial. There is one thing that I do not understand though. Let's say we have iterated the while loop once and our prev = [5]. When we itereate the loop the second time, prev = [6, 5]. How does 6 stack on top of 5(How does 6 become the head and 5 become the next). I hope my question makes sense, thank you.
Thanks for the comment. Line 11 doesn't override line 9. The purpose of line 9 is to do the reversing, i.e. point the node's "next" property to the previous node. The purpose of lines 10 and 11 are to advance to the next node in the chain. During the next iteration of the loop, we are going to sever the "next" property of that node(which we are now calling "head") and point it to the previous node. Hope that helps!
To subscribe to the channel: ruclips.net/channel/UCmOpHGj4JRWCdXhllVTZCVw
This is one of the most (personally) recommended explanation for Singly Linked List I've found.\
Very concise and straight to the point with little to no waffling around the topic.
Great! Thanks for watching 👍🏻
This is the best explanation in reversing the linked list. On GFG there is a same problem to reverse a linked list but test cases are not passing.
Great, thanks for watching!
what if I have to return a new list with the original reversed?
Great explanation, thank you for going through each step.
Thanks Darya!
Amazing solution. I did it in quadratic time but this is way better.
Great! Thanks for watching!
Incredible explanation
Thanks! 👍🏻
thank u!
Hey Dmitry, thanks for watching!
Thank you for this great explanation
Glad it was helpful!
Love your explanation and audio quality! One thing, when I tried to code the reverseList function, I needed to pass in "list" and then set "head" to "list.head". Otherwise, my console would tell me "head.next" is undefined.
Thanks for watching Cole!
Awesome video. Very explanatory
Excellent, thanks for watching!
Awesome tutorial. There is one thing that I do not understand though. Let's say we have iterated the while loop once and our prev = [5]. When we itereate the loop the second time, prev = [6, 5]. How does 6 stack on top of 5(How does 6 become the head and 5 become the next). I hope my question makes sense, thank you.
Thanks..it was helpful
👍🏻
📖 Download my FREE "Google Search Secrets for Developers" Cheat Sheet:
store.thecodecreative.com/google-secrets-cheat-sheet
thanksa man , beautifully done
Thanks for watching and commenting Shashi!
can I get source code? specifically of your ./Node file. I am finding it difficult to implement linked list and reverse it.
🗣JOIN the Code Creative Facebook group! :
facebook.com/groups/1612600368887577
Thanks. Keep doing a good wotk
Thanks for watching!
Thanks for the video
Hi Daniel, thanks for watching 👍🏻
what IDE do you use or extensions if it is vsCode?
Hi David, yes, it's VSCode. I use many extensions. Is there anything in particular you're curious about in the setup?
@@TheCodeCreative yes, your javascript syntax highlighter i like how the not equals statement looks
@@ajukalive Ah, ok, those are called ligatures. You want to search for "Fira Code". And you should be able to find out how to install it.
🙌💯
👍🏻👍🏻👍🏻
You are overriding line 9 with line 11. Line 9 is redundant.
Thanks for the comment. Line 11 doesn't override line 9. The purpose of line 9 is to do the reversing, i.e. point the node's "next" property to the previous node. The purpose of lines 10 and 11 are to advance to the next node in the chain. During the next iteration of the loop, we are going to sever the "next" property of that node(which we are now calling "head") and point it to the previous node. Hope that helps!
You saved my day. 🫀
Great! Thanks for watching!
🗣JOIN the Code Creative Facebook group! :
facebook.com/groups/1612600368887577