Reverse Linked List 2 (LeetCode 92) | Full simplified solution | Animations and Demo
ฝัง
- เผยแพร่เมื่อ 15 ก.ค. 2024
- Actual problem on LeetCode: leetcode.com/problems/reverse...
Chapters:
00:00 - Intro
00:52 - Problem statement and description
02:15 - Recap: Reverse a linked list
06:34 - Efficient Solution
13:02 - Use of a dummy node
15:11 - Dry-run of Code
18:14 - Final Thoughts
📚 Links to topics I talk about in the video:
Reverse a Linked List: • HackerRank - Reverse L...
Other Problems on LeetCode: • Leetcode Solutions
Other Medium Difficulty Problems: • Medium Problems
📘 A text based explanation is available at: studyalgorithms.com
Code on Github: github.com/nikoo28/java-solut...
Test-cases on Github: github.com/nikoo28/java-solut...
📖 Reference Books:
Starting Learn to Code: amzn.to/36pU0JO
Favorite book to understand algorithms: amzn.to/39w3YLS
Favorite book for data structures: amzn.to/3oAVBTk
Get started for interview preparation: amzn.to/39ysbkJ
🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
🎥 My Recording Gear:
Recording Light: amzn.to/3pAqh8O
Microphone: amzn.to/2MCX7qU
Recording Camera: amzn.to/3alg9Ky
Tablet to sketch and draw: amzn.to/3pM6Bi4
Surface Pen: amzn.to/3pv6tTs
Laptop to edit videos: amzn.to/2LYpMqn
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Subscribe to RSS feeds: studyalgorithms.com/feed/
Join fan mail: eepurl.com/g9Dadv
#leetcode #programming #interview
best solution with an accurate explanatiion and dry run
Surprised to see the content like this on TH-cam. Great work men, Waiting for more
I can't Explain my Words. You're a perfect mentor
Wow, this explanation really made a difference! The step-by-step breakdown and clarity in the explanation were incredible. Keep up the great work!
Glad you enjoyed it.
Great explanation , the best out there for linked list
crystal clear man
thank you so much brother for your nice explanation. I understand better
Appreciated. I was always confused why most of the linked list solutions had the dummy node concept. Thanks for the clarification.
Yea..the dummy node is a wonderful trick. I love it!!!
Well done man, I got it clearly!
First video that im watching on your channel and the approach was so good that I had to subscribe!
Awesome! Thank you!
bhai i wish your hard work will pay you off in anyways, thankyou so much ! how small details in video editing you have focused, really impressed !
This is amazing breakdown
Thank you so much, this was a tricky one, I tried to do it before just using the reversal technique but I was missing the key points of storing these pointer values, watched couple of videos for better logic, those were so complicated could not understand or implement even after watching it many times, was so frustrated. Just for fresh start looked at your video with 0 expectation... and wohh your explanation cleared all my doubts that I dint even know I had, which was actually stopping me from implementing the working code.
Nice Explanation Sir
Amazing explanation
best solution i have come across so far after watching n videos from other channels .. pls post more!!!!!!!!
a new video every week 😄
hey the explanation was too good!!
Thank you sir
awesome solution buddy!!
Thank u so much. I really like the way you explain things from brute force solution to efficient one
that is how you should approach a problem in an actual interview too
excellent solution
great explanation, keep them coming!
More to come!
Awesome bro.
The peace with which evey🥰🥰thing just happened , amazinggg man just brilliant!!!
Its awesome...!
Best explanation ever
Thanks a lot!!
wow great explanation. 👍
Thank you so much :)
you are the best
Thanks
Woow , soo beautiful explanation !❤
GoodNotes 6
Your explanation mechanism is the best Nikhil, I tried uderstanding this code from many platforms but it realy didnt work, appreciate your time and effort you give to explain every small bit .Thanks for explaining this question efficiently.
i try to make diagrams, which can help you to remember the solutions. :)
thank you sir
Very nice explanation
Keep watching
Thankyou for your valuable videos and time😇
So nice of you
great explanation bro
Glad it helped
Best Explanation
Thanks for liking
i watch your videos to hear your voice . BC its grt
Great explanation 🎉
Bhaiya, we need a video for Leetcode Problem 25 - Reverse Linked List in k Groups.
adding it to my pipeline.
GOD
😊😊😊😊
correction:--> Leetcode sum no. 92
sir can u post atleast 1 video everyday, your solutions help us a lot
Thanks..fixed it
@@zealrodrigues8495 i wish I could 😅, but each video takes me a total of 10 hours from scratch to final publishing. I try to ensure 4k videos, perfect audio and quality animations. I appreciate you being patient, and I will try to cover all the important topics/questions. Thanks for watching my videos.
However, if you want priority reply to comments/questions, explore my membership options as well :)
You are the best, sir...@@nikoo28
Can you please tell why we return dummy.next and not return head?
dummy.next points to head. keeping a dummy node helps you in a lot of ways. You can discard it later.
better than kunal kushwaha
Yaar Nick White (Angrez) ki Copy maar rakhi hai. So sad. It humiliates me.
Sorry to hear that…What part do you feel was copied?
quick question on(16:10) what was the purpose of that forloop, lost me on the part of Assigning {leftPre = leftPre.next} and also{currNode =currNode.next} will appreciate your clarification on that area
Did you go through the explanation of the concept? Or went straight to the code?
@@nikoo28 I actually forgot to tell you that I got the concept of it…. I guess I was tired at the time of watching but when I re watched I got we had to iterate through the loop so at to get the right and left initial positions.. thank you once again for taking the initiative to respond back
Wow, this explanation really made a difference! The step-by-step breakdown and clarity in the explanation were incredible. Keep up the great work!
Glad you liked it!