At the end u can just return prevNode without doing head = prevNode... btw nice tutorials 😃
@chhoturaj-c6u10 ай бұрын
great explanation
@ForWork-mj9fv2 ай бұрын
Thank you Nikhil, i code in python, buh only your explanations are good enough for me to start trying things out 🙏
@syw5122 жыл бұрын
Really like your explanation!! I’m new to programming,you make it really easy for beginners to understand. 👍👍👍
@nikoo282 жыл бұрын
Glad I can help you out
@syw5122 жыл бұрын
@@nikoo28 looking forward to see more of your videos.
@TarunSharma-eg7kl3 жыл бұрын
Great explanation!
@kash1903Ай бұрын
Very helpful video thank you bro
@Abhaykumar-lw7nr2 ай бұрын
nice explanation thanks man
@snehalshelar7778Ай бұрын
Why we cant take only ptr as a new node ...why we need to take 2 new nodes ?
@Unknown373d5 ай бұрын
nice explanation
@pavanshanmukh65027 ай бұрын
Thank you for your wonderful explanation
@nikoo287 ай бұрын
You are welcome!
@xtremeinnovations859911 ай бұрын
Thanks!
@riyapawar4569 Жыл бұрын
Great ❤❤ too good
@reactninja65672 жыл бұрын
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 .
@nikoo282 жыл бұрын
Thank you so much for your feedback and motivation. Right now all my content is only on KZbin and the website. Sure, if I add more subscription based course, you will know about it.
@reactninja65672 жыл бұрын
@@nikoo28cool! any visual based learning for DSA book/course.can u refer? that would be much helpful.
@sushant35303 жыл бұрын
great
@KeerthiNarayan-c4o5 ай бұрын
I'm stuck in last iteration you skipped that part please explain 12:09
@nikoo285 ай бұрын
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.
@sukhkaur4443 ай бұрын
I don't understand the swapping of the pointers☹ I watched the video over and over, still don't get it.
@nikoo283 ай бұрын
What part are you facing a problem with?
@johncho916010 ай бұрын
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?
@nikoo2810 ай бұрын
you are correct...it is just a dummy node. You can assign any value to it. It is just for utility.
@MaulikDodiaHollywoodMovieLover7 ай бұрын
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!
@nikoo287 ай бұрын
did you go over the explanation part or went straight to the code?
@MaulikDodiaHollywoodMovieLover7 ай бұрын
@@nikoo28 Yes, I watched it. Didn't get so I asked! Never mind.