Wow.This is the best explanation.Everyone explains the code and how to do it.But no one explained how it works.Thankyou so much for such an awesome explanation.
Please continue making such quality content, i loved the way you explained 'how' & 'why' the logic works in certain case, most creators don't do a good job explaining the 'why' part !!! keep up 👍
Wow.This is the best explanation.Everyone explains the code and how to do it.But no one explained how it works.Thankyou so much for such an awesome explanation.
Thank you so much Ruchi🥺😊 glad it was helpful
Just loved the explanation!!! Hat's offff
thank you Adityan :)
Please continue making such quality content, i loved the way you explained 'how' & 'why' the logic works in certain case, most creators don't do a good job explaining the 'why' part !!!
keep up 👍
Thank you so much Yuvraj, means a lot 🤗
just an idea !! to detect a loop in linked list so why cant we iterate from first and last so if they are equal then loop is detected?
Plz post video regularly..you are sweet btw
❤
Quality teaching. I appreciate.
Thanks Parag, means a lot :)
great explanation about the distance of the meeting point of the pointers.👍
Thank you Deepankur, glad it was helpful :)
Beautiful explanation of the mathematical proof at 12:16
Thanks 😊
The way you teach.. Is another level mam... I saw your all video of coding ninja... Your teaching is next level and your voice is so so so smooth.
Thank you so much Mayank, means a lot :)
LEETCODE SOLUTION FOR GIVEN PROBLEM.
class Solution
{
static Node slow;
public static Node detectLoop(Node head){
slow = head;
Node fast = head;
while(fast != null && fast.next != null){
slow = slow.next;
fast = fast.next.next;
if(fast == slow){
return slow;
}
}
return null;
}
public static void removeLoop(Node head){
Node fast = detectLoop(head);
if(slow == fast){
slow = head;
if(slow == fast){
while(fast.next != slow) fast = fast.next;
}else{
while(slow.next != fast.next){
slow = slow.next;
fast = fast.next;
}
}
fast.next = null;
}
}
}
Thank You :)
Ab to pehle Like krta hu ,
Fir Video start krta hu.. 😅
thanks yrr Faisal 🤗😇🥺
best explanation!
Very well explained👌
Thank you :)
Thanks Ayushi
Welcome Nidhi :)
Di top knotch explanation 🔥🔥
Thank you, glad it was helpful :)
wow ! Nice explaination......
thankyou mam
Nice Thumbnail...
Thanks :)
Python code showing type error
How to deal with it
First step to deal with it is let us know the error log here :p
💯👍✨
Thank you :)
time limit exceeding
Please explain code in java as well
Okay, will do from next video✌🏻
@@AyushiSharmaDSA thanks
Di in your telegram group only you will msg please allow us so we will put our doubts in this group
okay sanchit, thanks for letting me know😀
Let me know if you are still not able to msg
@@AyushiSharmaDSA now the members of the group are able to put the msg. Thank you so much Di😊😊