HackerRank - Reverse Linked List | Full solution with visuals | Study Algorithms

  Рет қаралды 15,170

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 29
@technicalguy.
@technicalguy. 11 ай бұрын
No doubt you're an excellent teacher! ❤
@Sranju23
@Sranju23 Жыл бұрын
At the end u can just return prevNode without doing head = prevNode... btw nice tutorials 😃
@ForWork-mj9fv
@ForWork-mj9fv Ай бұрын
Thank you Nikhil, i code in python, buh only your explanations are good enough for me to start trying things out 🙏
@snehalshelar7778
@snehalshelar7778 23 күн бұрын
Why we cant take only ptr as a new node ...why we need to take 2 new nodes ?
@chhoturaj-c6u
@chhoturaj-c6u 9 ай бұрын
great explanation
@syw512
@syw512 2 жыл бұрын
Really like your explanation!! I’m new to programming,you make it really easy for beginners to understand. 👍👍👍
@nikoo28
@nikoo28 2 жыл бұрын
Glad I can help you out
@syw512
@syw512 2 жыл бұрын
@@nikoo28 looking forward to see more of your videos.
@kash1903
@kash1903 20 күн бұрын
Very helpful video thank you bro
@Abhaykumar-lw7nr
@Abhaykumar-lw7nr Ай бұрын
nice explanation thanks man
@TarunSharma-eg7kl
@TarunSharma-eg7kl 3 жыл бұрын
Great explanation!
@reactninja6567
@reactninja6567 2 жыл бұрын
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 .
@nikoo28
@nikoo28 2 жыл бұрын
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.
@reactninja6567
@reactninja6567 2 жыл бұрын
@@nikoo28cool! any visual based learning for DSA book/course.can u refer? that would be much helpful.
@Unknown373d
@Unknown373d 5 ай бұрын
nice explanation
@xtremeinnovations8599
@xtremeinnovations8599 11 ай бұрын
Thanks!
@pavanshanmukh6502
@pavanshanmukh6502 7 ай бұрын
Thank you for your wonderful explanation
@nikoo28
@nikoo28 6 ай бұрын
You are welcome!
@KeerthiNarayan-c4o
@KeerthiNarayan-c4o 5 ай бұрын
I'm stuck in last iteration you skipped that part please explain 12:09
@nikoo28
@nikoo28 5 ай бұрын
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.
@riyapawar4569
@riyapawar4569 Жыл бұрын
Great ❤❤ too good
@sushant3530
@sushant3530 3 жыл бұрын
great
@johncho9160
@johncho9160 10 ай бұрын
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?
@nikoo28
@nikoo28 10 ай бұрын
you are correct...it is just a dummy node. You can assign any value to it. It is just for utility.
@sukhkaur444
@sukhkaur444 3 ай бұрын
I don't understand the swapping of the pointers☹ I watched the video over and over, still don't get it.
@nikoo28
@nikoo28 3 ай бұрын
What part are you facing a problem with?
@MaulikDodiaHollywoodMovieLover
@MaulikDodiaHollywoodMovieLover 6 ай бұрын
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!
@nikoo28
@nikoo28 6 ай бұрын
did you go over the explanation part or went straight to the code?
@MaulikDodiaHollywoodMovieLover
@MaulikDodiaHollywoodMovieLover 6 ай бұрын
@@nikoo28 Yes, I watched it. Didn't get so I asked! Never mind.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 28 МЛН
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 189 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 35 МЛН
Reverse a Single Linked List
11:57
Neso Academy
Рет қаралды 275 М.
Reverse Linked List - Leetcode 206 - Linked Lists (Python)
8:02
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 875 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 28 МЛН