Count the number of times I said "essentially" in this video :P
@staffeng3 жыл бұрын
Loved the way you named your variables! Half the battle in understanding is won right there.
@JyotinderSingh3 жыл бұрын
Hahaha yes I do like to keep my variable names descriptive! Thank you, and be sure to subscribe for more content!
@engineeringflix6 ай бұрын
very welll explained....
@yashsaini33312 жыл бұрын
Best Explanation on the internet. Thanks a lot man!
@susmitapatro87203 жыл бұрын
After spending hours on this problem, i finally understood because of your explanation . Thankyou :)
@JyotinderSingh3 жыл бұрын
Glad you understood the concept! Be sure to subscribe for more videos!
@pythonenthusiast92923 жыл бұрын
hey man , your explanations are so good and voice is quite clear as well. I see you are not making videos currently . I really hope you start it whenever possible cause these are for sure very helpful. cheers
@JyotinderSingh3 жыл бұрын
Hi! Thanks a lot for the feedback! Yes, I've been taking a break for the last couple of months due to work commitments, but I plan on making new videos very soon! I'm currently exploring different things that I'd like to make more videos on, other than LeetCode :) Again, thanks for the support!
@rajeshkilladi712427 күн бұрын
Thank you so much for the explanation❤, simply get the whole concept within the first 5 min, for those guys who are checking the comments whether to watch this video is simple, go for it.
@MayankLC932 жыл бұрын
What a crisp explanation.... !!! thank You :)
@EmiNBega Жыл бұрын
Got stuck on many paid Udemy courses explaining Linked lists, but you definitely nailed it! Nice visualization and explanation, also a variable names are incredibly meaningful in understanding this algorithm! Big like!
@itsninja709 Жыл бұрын
its showing null pointer exception for this line at 15:58 as nodetobeextracted is null. plz help.
@indranilthakur36054 жыл бұрын
Awesome explanation. Though I code in Java, your explanation was the best I could find and understood it properly. thanks
@JyotinderSingh4 жыл бұрын
Glad I could help! Be sure to subscribe for more upcoming content! ♥
@radhikadube7360 Жыл бұрын
your explanation is remarkable, literally I have no words...... superb Plzzzzz upload more videos
@saranyavivekanandan90443 жыл бұрын
Amazing explanation! The best part is the diagram you drew.
@JyotinderSingh3 жыл бұрын
Thank you so much! I'm glad you found this useful, please consider subscribing for more content!
@samolusola2 жыл бұрын
@@JyotinderSingh great video. What software do you use to draw and present at the same time?
@itsninja709 Жыл бұрын
its showing null pointer exception for this line at 15:58 as nodetobeextracted is null. plz help.
@govindmall4731 Жыл бұрын
you are amazing, your code is very explanatory ...
@dwivedishashank95 ай бұрын
Thanks man. Will be using variable names going forward :)
@alkadas40943 жыл бұрын
Just loved the variable names...It became damn easy after that to undersatnd
@JyotinderSingh3 жыл бұрын
Glad you liked it! Be sure to subscribe for more videos!
@danielnzuma9070 Жыл бұрын
Thanks for the great insight had trouble understanding this In addition we need to add a dummy node (sentinel) to cover for scenarios where we need to reverse from the head of the linkedlist
@adityachauhan11823 жыл бұрын
Excellent !! Using diagram and name of pointers you have turned this hard concept into soo easy to understand !! Thanks
@JyotinderSingh3 жыл бұрын
These comments make my day! Please consider subscribing for more content!
@adityachauhan11823 жыл бұрын
I am preparing for my internship will you give some suggestions ?
@JyotinderSingh3 жыл бұрын
Sure, feel free to email /DM me about any specific thing you wish to ask. I'll try my best to help! My social media is linked on my profile
@adityachauhan11823 жыл бұрын
@@JyotinderSingh Can you provide me your LinkedIn account ?
@JyotinderSingh3 жыл бұрын
www.linkedin.com/in/jyotinder-singh
@shoaibhossain4545 Жыл бұрын
Thanks for this video, made things a lot easier for me. Great Job!!
@ankitpaudel89013 жыл бұрын
Amazing Explanation Brother all there were n doubts at all.
@ismailhassaballa69482 жыл бұрын
Wonderful visualization and explanation! Thank you a lot!
@cantseeme10111 ай бұрын
This was a great explanation, mate!
@shrutipriya4848 Жыл бұрын
thank you thank you so much your explanation was the best
@RituJain-qu6sf3 жыл бұрын
Amazingly amazing explanation. Understood in one go :D
@JyotinderSingh3 жыл бұрын
That's so great go hear! Please consider subscribing for more videos!
@Ankit.yt_8852 жыл бұрын
Very Nice Explanation!
@giorgikhachidze6411 ай бұрын
Great explanation! Only question is, why did we have to create dummy list? Why couldn't we do it with existing list?
@rajendrabrahmbhatt2585 Жыл бұрын
hi, do we always need to have dummy node? I am trying without using dummy but it does not seem to work. Could you please help?
@furryna482 Жыл бұрын
The simplest solution I found ngl Really helpful!
@itsninja709 Жыл бұрын
its showing null pointer exception for this line at 15:58 as nodetobeextracted is null. plz help.
@hardikmittal47464 жыл бұрын
if instead of nodeToBeExtracted->next=nodeBeforeSublist->next if we write nodeToBeExtracted->next=workingPtr why is it not working as nodeBeforeSublist->next is pointing to address of workingPtr
@JyotinderSingh4 жыл бұрын
WorkingPtr will only be equal to nodeBeforeSublist->next for the first iteration, after that the workingPtr will be further ahead in the list with other elements between itself and nodeBeforeSublist. I hope this clears it out, otherwise look at the second iteration in the demo I give in the video, you'll see that there is another element between workingPtr and nodeBeforeSublist once the first element has been 'cut & pasted'.
@047gauravkumartiwari52 жыл бұрын
Very nice explanation. Thanks a lot.
@JyotinderSingh2 жыл бұрын
Thank you!
@penchaldas72532 жыл бұрын
awesome explanation!
@akshitvashishth54814 жыл бұрын
Amazing approach! Thanks :)
@JyotinderSingh4 жыл бұрын
Glad I could help! Be sure to subscribe for more content!
@vinothiniseenivasan1502 Жыл бұрын
brilliant explanation and naming variables ... thanks a lot
@itsninja709 Жыл бұрын
its showing null pointer exception for this line at 15:58 as nodetobeextracted is null. plz help.
@pateladarsh14632 жыл бұрын
big appreciation for this !!
@michaelphan74774 жыл бұрын
Whats the point of the dummy pointer? Still don't understand
@michaelphan74774 жыл бұрын
can't you just return head at the end?
@JyotinderSingh4 жыл бұрын
Hey, I'm glad you asked. This is a common design pattern while working with linked lists in cases when you need to return a new list. The idea is that you always want dummy.next to be the head node. Think of examples when your head might be null, the dummy allows you to keep track of that node. This is also useful in cases when you need to perform some other tasks, such as rotating or reversing a list, when you need a pointer to the previous element of your current node (and your current node might be head itself). The point is, you can probably get by without using a dummy node as well, because there's always more than one way to do something. But it's a helpful pattern that you'll realise is adaptable to a lot of problems. I hope this helped!
@michaelphan74774 жыл бұрын
@@JyotinderSingh ahhh ok that makes a lot of sense. thank you. so basically for this probably you don't really need a dummy pointer.
@JyotinderSingh4 жыл бұрын
Glad I could help! Be sure to subscribe for more content!
@briangorman35113 жыл бұрын
The dummy pointer is used to handle the case where the sublist is at the start of the list
@AbhinavKumar-dr4ef3 жыл бұрын
Krishna bless you. Nice explanation.😊
@Abhishek-ie4mm3 жыл бұрын
Superb explaination.... Thanks man...
@JyotinderSingh3 жыл бұрын
Glad I could help you understand the concept! Please consider subscribing for more videos!
@ujjawalgupta232 жыл бұрын
Awesome explanation Bhai!!
@saharshithasa3 жыл бұрын
Fantastic explanation
@JyotinderSingh3 жыл бұрын
Thank you! Please consider subscribing for more videos!
@saharshithasa3 жыл бұрын
@@JyotinderSingh sure
@manjotkaur67314 жыл бұрын
Very good explanation sir
@JyotinderSingh4 жыл бұрын
Thank you! Be sure to subscribe for more content!
@bittudwivedi65362 жыл бұрын
Thanks for the good video
@piyushmanaswi74703 жыл бұрын
could you please explain the need of dummy pointer and its usecase?
@govindmall4731 Жыл бұрын
because you can't change directly the main head of the linked list... that's why he has taken the dummy pointer...
@keshavgaur45353 жыл бұрын
Thank you so much
@barnabasbabatunde54543 жыл бұрын
Very helpful. Thanks
@JyotinderSingh3 жыл бұрын
Thanks a lot! Be sure to subscribe for more content!
@savagebeaztpeace8390 Жыл бұрын
this is insightful, thanks!
@AvikNayak_3 жыл бұрын
Damn! what an explanation !!
@JyotinderSingh3 жыл бұрын
Glad you were able to understand the concept! Be sure to subscribe for more videos!
@diksharajput46383 жыл бұрын
Amazing explanation thanks a lot 😊
@JyotinderSingh3 жыл бұрын
Glad you liked the video! Subscribe for more content!
@ishaanshrikantkulkarni46603 жыл бұрын
amaing explaination!!!
@ManojDohale-q6o Жыл бұрын
I liked the explanation sir, but it will be better to understand if you keep the variable name a little bit shorter (without compromising the meaning) Thanks for this awesome content
@itsninja709 Жыл бұрын
its showing null pointer exception for this line at 15:58 as nodetobeextracted is null. plz help.
@100_bindusai84 жыл бұрын
Amazing 😊🤩
@JyotinderSingh4 жыл бұрын
Thank you! Be sure to subscribe for more content!
@ayushvats18083 жыл бұрын
please someone clear this in loop our working pointer needs to be updated na.. with just start++ how our working pointer is getting updated..
@JyotinderSingh3 жыл бұрын
Hey, if you look at the whiteboard explanation, you'll see that we never really update the workingPtr. It always points to the same node (with value 3 in our example). The only thing that changes is the next pointer of the workingPtr, which we do update in every iteration of the loop. Hope this clears it up
@AvikNayak_3 жыл бұрын
Can you do a video on Rotate Array,Next Permutation,Product Of array except self ?
@JyotinderSingh3 жыл бұрын
Hey, sure. I'll try adding those :)
@anikkhan88113 жыл бұрын
You are gem bro :) Thanks would be such a small word for ya!
@JyotinderSingh3 жыл бұрын
It really means a lot! Thank you!
@anikkhan88113 жыл бұрын
@@JyotinderSingh My pleasure bro 😀
@techenthusiast1273 жыл бұрын
Thank you so much!
@muditkumarsingh76274 жыл бұрын
pretty well solution :))
@JyotinderSingh4 жыл бұрын
Thank you! Be sure to subscribe for more content!
@GauravSharma-wb9se2 жыл бұрын
Whole logic sit at you dummy pointer, I tried this problem with reversing sublist then join likns properly but for 2 elements it got failed, but after seeing your video I got idea of dummy node.