Detect & Remove Cycle in a Linked List | Floyd's Cycle Detection Algorithm | DSA-One Course #39

  Рет қаралды 113,906

Anuj Bhaiya

Anuj Bhaiya

Күн бұрын

Пікірлер: 303
@ruchitachandel2348
@ruchitachandel2348 2 жыл бұрын
I really like those who taught concepts in Hindi. Becz being an Indian jitne clarity Hindi me aate hai utne English me kabhi nahi aate. English me sirf concept samagh aata hai or Hindi me concept ghus jaata hai.. Thanks for making such a good content.
@nimishnandwana1085
@nimishnandwana1085 2 жыл бұрын
Your dry run technique is the best bro.
@debasishphukon5345
@debasishphukon5345 2 жыл бұрын
Very Nice Explanation, For removing the loop, we can put a condition in the while loop without maintaining another pointer while(start->next != meet->next) { start = start->next; meet=meet->next; } meet->next = NULL; This is should remove the loop
@manishkumargupta8677
@manishkumargupta8677 2 жыл бұрын
Aisi explaination with proof mai pahli baar dekh raha hun Thank you very much bhaiya
@danishuddin9752
@danishuddin9752 2 жыл бұрын
just wow! thank you very much for making DSA easy comfortable and lovable!
@kartikkusmude9008
@kartikkusmude9008 Жыл бұрын
Best explanation for this question
@DipsOfficial802
@DipsOfficial802 Жыл бұрын
Thank u Anuj Bhaiya
@khudkikhoz
@khudkikhoz 3 жыл бұрын
Sukriya bhai 😍 itna regular ho kr toh padh b nahi paate jitna regularly videos aa rhe h, Tx for ur time bhai.
@tejaslomate9214
@tejaslomate9214 Жыл бұрын
yes, it is very helpful sir..
@arshadjaved8136
@arshadjaved8136 3 жыл бұрын
Please add more interview questions cover all dsa topics as fast as possible..I am following from ur course java for placements .I am unable to find This type of teaching . Please add more videos fast my placements are running in my clg🙏🙏..and thanks so much for ur contribution ❤️❤️
@Hrit
@Hrit 2 жыл бұрын
Exactly this series is one of the best on youtube
@sanketgoel6453
@sanketgoel6453 2 жыл бұрын
this dsa-algo course is really helpful , if possible create more videos like this to solve the classical question of dsa
@sakshi07222
@sakshi07222 Жыл бұрын
Best explanation ever got for this problem
@shivamgupta-ch8kw
@shivamgupta-ch8kw Жыл бұрын
Best explaination on the youtube...Thank you bhaiyaaaaaa
@good114
@good114 2 жыл бұрын
Thank you Sir💕❤️❤️💕
@levi-lb6dp
@levi-lb6dp 2 жыл бұрын
Thanks ❤️
@cliffmathew
@cliffmathew Жыл бұрын
Thank you. You have done a great job explaining this. Many other videos I saw (mostly in English) does not do a good job of explaining why the start of the cycle node will be the meeting point after the slow pointer is reset back to start of the list.
@RohitKumar-nb8qe
@RohitKumar-nb8qe 2 ай бұрын
It was simply awesome and crystal clear..
@preranaramteke5908
@preranaramteke5908 2 жыл бұрын
Thanks Anuj Bhaiya,For Making DSA Easy to Learn
@BRSanush
@BRSanush 2 жыл бұрын
Crystal Clear Explaination! Thank you so much...
@iti_koookie9678
@iti_koookie9678 2 жыл бұрын
Thank you so much It was so helpful... Just keep going 👍
@pranjalnama2420
@pranjalnama2420 2 жыл бұрын
thank you so much sir i was struggling to understand the second proof but you made it clear. ❤
@gouravrawat6476
@gouravrawat6476 Ай бұрын
Amazing and Best explanation
@nitinanand1092
@nitinanand1092 Жыл бұрын
thx bhaiya ur great and here is my solution to remove cycle :- public static void removeCycle(Node node, Node head) { LinkedList_copied list = new LinkedList_copied(); if(node == null || node.next == null) { return; } Node curr = head; Node ptr = node; Node prev = null; while(curr != ptr) { prev = ptr; ptr = ptr.next; curr = curr.next; } prev.next = null; }
@gpavansai7207
@gpavansai7207 Жыл бұрын
Thank You Anuj Bhaiya, now I am clear with Floyd's Cycle Detection Algorithm. :)
@naiduaravind4641
@naiduaravind4641 2 жыл бұрын
Thank you very much brother, I am in lot of confusion with this "linked list cycle check". Your video helped me to understand in a better way and the way of teaching is simply amazzzzzzing.
@Kunalkekaram
@Kunalkekaram 3 ай бұрын
bhaiya kya tagda dry run krke smjhaya hai mja hi aagya
@anuragchatterjee241
@anuragchatterjee241 3 жыл бұрын
awesome explanation bhaiya 😀
@abd11868
@abd11868 2 жыл бұрын
Sir I don't think ki slow wala pointer ek se zyda cycle lagyega.... kyu ki jab wo cycle ki starting point pr reach krega us time "fast pointer" to "slow pointer" ke beech ka gap N step hoga, and N
@cricketind8830
@cricketind8830 2 жыл бұрын
Yes, very helpful
@swethakare429
@swethakare429 2 жыл бұрын
Easy to understand..very nice I am following all ur lectures...!!!
@kondurisaivarshath686
@kondurisaivarshath686 4 ай бұрын
YES,IT WAS HELPFUL TQ Anuj Bhaiya
@arifsaleem-7377
@arifsaleem-7377 8 ай бұрын
wonderful explanation
@amitkumarlkr
@amitkumarlkr 2 жыл бұрын
Great 😃 explanation thank you 😊
@shivamKumar-pv7gz
@shivamKumar-pv7gz 2 жыл бұрын
Wonderful explanation bahiya
@s.g.prajapati3597
@s.g.prajapati3597 2 жыл бұрын
The idea was helpful!
@rohan8758
@rohan8758 9 ай бұрын
Nice explanation Anuj Bhaiyan ji
@moshoyab4964
@moshoyab4964 3 жыл бұрын
Bhaiya ye course complete kerna bht acha course h very useful h or thoda jaldi jaldi videos dalo awesome course h ♥️♥️♥️
@sanjayguptab.r1899
@sanjayguptab.r1899 5 ай бұрын
Yes it was helpful
@aryansinha1818
@aryansinha1818 2 жыл бұрын
Bahut se bhi uppppar helpful
@roopeshverma9719
@roopeshverma9719 8 ай бұрын
Thanks sir, the proof was the simplest explaination ever!
@MOHAMMEDKHALANDER-g1c
@MOHAMMEDKHALANDER-g1c 10 ай бұрын
Next level 💯 👌 bhai (bro) , I just love the way how you proved that. Literally great 👍 explanation 👏
@ravikumar4870
@ravikumar4870 Жыл бұрын
YES, IT WAS HELPFUL. THANKYOU SO MUCH FOR SHARING YOUR KNOWLEDGE WITH US.
@shivamchouhan8426
@shivamchouhan8426 2 жыл бұрын
your explain's skill really good , i got this linked list problem .Thanks keep contniue.
@anjaligoyal8106
@anjaligoyal8106 2 жыл бұрын
Very helpful
@arshadahmed4951
@arshadahmed4951 2 жыл бұрын
👍 YES, IT WAS HELPFUL. THANKYOU SO MUCH FOR SHARING YOUR KNOWLEDGE WITH US. 🙏🙏🔥🔥🔥
@yashjadhav6838
@yashjadhav6838 2 жыл бұрын
Jod! explanation
@BhaktiPath-gk6fo
@BhaktiPath-gk6fo Жыл бұрын
Best Video in KZbin till date.
@kishandwivedi2444
@kishandwivedi2444 3 жыл бұрын
Tagda explanation bhaiya ji Bs isi trh aur saare problems ki vdo daalte rho
@ramankr0022
@ramankr0022 Жыл бұрын
extremely helpful. thanks.
@everymaterialforstudy4893
@everymaterialforstudy4893 2 жыл бұрын
Thank you sir your teaching method is amazing its really helpful to understand the concept of dsa
@QniqueTales
@QniqueTales 3 жыл бұрын
it is helpfull bhaiya
@anjalitehlani4114
@anjalitehlani4114 3 жыл бұрын
So helpful🤗 Thank you❤️
@logicalrisi
@logicalrisi 2 жыл бұрын
Yes
@eddiepulaski237
@eddiepulaski237 Жыл бұрын
Yes, It was very very helpful
@kartikpatidar3378
@kartikpatidar3378 2 жыл бұрын
Yes
@AbhishekKumar-cd4gg
@AbhishekKumar-cd4gg 3 ай бұрын
nice explanation
@akhilballa8320
@akhilballa8320 Жыл бұрын
Veryy much helpful bro...thank you 🙇🙇
@chetantailor3620
@chetantailor3620 3 жыл бұрын
very helpful.
@ThisAmit
@ThisAmit Жыл бұрын
Yes it was helpful. Thank you.
@nargisp434
@nargisp434 2 жыл бұрын
yes it is very very very helpful..plz make video on some more question
@noormaaz
@noormaaz 2 жыл бұрын
Big Yes! Apne naya sekha diya
@MohitJain-g9z
@MohitJain-g9z Жыл бұрын
nice explanation.
@jainikprajapati1632
@jainikprajapati1632 2 жыл бұрын
Thank you Yes very helpful
@atharvshelgaonkar4694
@atharvshelgaonkar4694 3 жыл бұрын
Yes video was helpful 😃
@mohammedsayeed4876
@mohammedsayeed4876 3 жыл бұрын
What a mind blowing and easy explanation
@blackwolfkills
@blackwolfkills 2 жыл бұрын
Great explaination
@mcafree1345
@mcafree1345 Жыл бұрын
best explainnation
@infinity2arbitrary681
@infinity2arbitrary681 2 жыл бұрын
It was really very helpful thanks 👍
@shaikaqib3496
@shaikaqib3496 2 жыл бұрын
YES, IT WAS HELPFUL
@jayeshsingh7764
@jayeshsingh7764 2 жыл бұрын
YES
@anuragrajput6479
@anuragrajput6479 Жыл бұрын
Thank you .
@subhamadhikari
@subhamadhikari Жыл бұрын
Thank you brother!
@vaibhzDixit
@vaibhzDixit 2 ай бұрын
Thanks alot
@girish6064
@girish6064 9 ай бұрын
Thanks
@Atul_Agnihotri
@Atul_Agnihotri Жыл бұрын
Yes, It was helpful.
@Suno-99
@Suno-99 Ай бұрын
Helpful
@srishtychoudhary7750
@srishtychoudhary7750 2 жыл бұрын
yes, it was helpful. Great Explanation
@mindbehaviour9195
@mindbehaviour9195 2 жыл бұрын
Maja aa gaya bhai, best video on linkedlist
@workwithmohiit
@workwithmohiit 10 ай бұрын
Yes it was helpful sir
@Sandeep_Kumar2022
@Sandeep_Kumar2022 7 ай бұрын
Yes, helpful video ❤❤
@K.AnshulReddy
@K.AnshulReddy 4 ай бұрын
lovely proof
@spiral546
@spiral546 2 жыл бұрын
yes
@bharatmakkar9706
@bharatmakkar9706 Жыл бұрын
Clear-cut explanation😃
@saniyapathan8968
@saniyapathan8968 4 ай бұрын
Best!!
@circketblendwithmusic
@circketblendwithmusic 2 жыл бұрын
Helpful video
@furqanahmad5446
@furqanahmad5446 2 жыл бұрын
very helpful.. thank u bhaiya
@VkThummanapally
@VkThummanapally 2 жыл бұрын
Yes Very Helpful
@kapiljetwani3540
@kapiljetwani3540 2 жыл бұрын
thank you bhaiya❤❤
@mritunjay7065
@mritunjay7065 2 жыл бұрын
Simple and best explanation !
@mukeshmahadev7419
@mukeshmahadev7419 2 жыл бұрын
Yes, Thanks bro
@anupchaudhary4253
@anupchaudhary4253 Жыл бұрын
Great explanation ❤
@amolnakhate6274
@amolnakhate6274 2 жыл бұрын
it was very useful
@helloak7156
@helloak7156 2 жыл бұрын
Crystal clear
@mohdumar6990
@mohdumar6990 2 жыл бұрын
bhot bdiya mzaa aagya bhaiya
@Mahendra-Singh-048
@Mahendra-Singh-048 Жыл бұрын
yes, it was helpful.
@ravikantmaurya1979
@ravikantmaurya1979 3 жыл бұрын
I saw your first video and you got a subscriber....
@onlyPROFIT_BITCOIN
@onlyPROFIT_BITCOIN 3 жыл бұрын
Yes it was helpful 😇
@IshaXbollywood
@IshaXbollywood 5 ай бұрын
Thank you❤🌹🙏
@JiGLifyy
@JiGLifyy 3 жыл бұрын
Really helping video bhiya...keep uploading...placement season is going on . (tier 3 cllg )😅
@SunoTohSahi
@SunoTohSahi 2 жыл бұрын
gazab bhaiya gazab 🔥🔥🔥. !!!!!!!!!!!
@ananyasiingh21
@ananyasiingh21 7 ай бұрын
Just give an additional if statement to handle the null pointer error in the detectCycle function.
L14. Detect a loop or cycle in LinkedList | With proof and Intuition
20:26
Synyptas 4 | Арамызда бір сатқын бар ! | 4 Bolim
17:24
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,6 МЛН
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 9 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 622 М.
Detect a Cycle in Linked List | Amazon | Samsung | Microsoft
11:36
take U forward
Рет қаралды 130 М.
DSA v/s Development | What to do for Placements?
9:15
Apna College
Рет қаралды 526 М.