Reverse Linked List 2 (LeetCode 92) | Full simplified solution | Animations and Demo
Vložit
- čas přidán 23. 07. 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 CZcams. Great work men, Waiting for more
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 !
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.
I can't Explain my Words. You're a perfect mentor
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!!!
Great explanation , the best out there for linked list
thank you so much brother for your nice explanation. I understand better
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!
crystal clear man
awesome solution buddy!!
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.
great explanation, keep them coming!
More to come!
The peace with which evey🥰🥰thing just happened , amazinggg man just brilliant!!!
hey the explanation was too good!!
Best explanation ever
excellent solution
best solution i have come across so far after watching n videos from other channels .. pls post more!!!!!!!!
a new video every week 😄
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
Nice Explanation Sir
Amazing explanation
Thank you sir
Awesome bro.
wow great explanation. 👍
Woow , soo beautiful explanation !❤
GoodNotes 6
Thanks
Thank you so much :)
Thanks a lot!!
Its awesome...!
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. :)
you are the best
Thankyou for your valuable videos and time😇
So nice of you
thank you sir
great explanation bro
Glad it helped
Very nice explanation
Keep watching
i watch your videos to hear your voice . BC its grt
Best Explanation
Thanks for liking
Great explanation 🎉
Bhaiya, we need a video for Leetcode Problem 25 - Reverse Linked List in k Groups.
adding it to my pipeline.
GOD
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
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
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!