No video

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

  Рет қаралды 109,269

Anuj Bhaiya

Anuj Bhaiya

2 жыл бұрын

Hey guys, In this video, We're going to learn Floyd's cycle Detection Algorithm. This algorithm is used to detect and remove cycle in a Linked List.
Code: www.geeksforgeeks.org/detect-...
🥳 Join our Telegram Community:
Telegram channel: telegram.me/realanujbhaiya
Telegram group: telegram.me/dsa_one
🚀 Follow me on:
Instagram: / anuj.kumar.sharma
Linkedin: / sharma-kumar-anuj
Twitter: / realanujbhaiya
💸 Use coupon code ANUJBHAIYA on GeeksforGeeks to avail discounts on courses!
📚 Complete DSA Playlist: • DSA-One Course - The C...
Complete Android Development Playlist: • Android Development Tu...
Hashtags:
#anujbhaiya #dsaone
Ignore these tags:
detect
detect lying
detect lyin
dust detect
detect lies
detect movie
detect tempo
detect fakes
detect liars
dyson v15 detect
detect short film
detect short movie
how to detect liars
dewalt power detect
dyson v12 detect slim
how to detect baloney
how to detect deception
detect independent film
detect telugu short film
how to detect dark matter
dyson v15 detect inceleme
detect the honest officer
how to detect counterfeit
linked list
linked list in c
linked list conept
linked lists
linked list in hindi
linked list in python
linked list examples
linked list in c programming
c programming for beginners
beginners
c tutorial for beginners
stock market for beginners
sql for beginners
beginner
beginner chinese
it beginner course
beginner in coding
apis for beginners
investing for beginners
beginner sewing tips
sql beginners
beginner ds algo
c programming for begineers

Пікірлер: 299
@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.
@danishuddin9752
@danishuddin9752 2 жыл бұрын
just wow! thank you very much for making DSA easy comfortable and lovable!
@nimishnandwana1085
@nimishnandwana1085 2 жыл бұрын
Your dry run technique is the best bro.
@khudkikhoz
@khudkikhoz 2 жыл бұрын
Sukriya bhai 😍 itna regular ho kr toh padh b nahi paate jitna regularly videos aa rhe h, Tx for ur time bhai.
@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.
@manishkumargupta8677
@manishkumargupta8677 2 жыл бұрын
Aisi explaination with proof mai pahli baar dekh raha hun Thank you very much bhaiya
@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.
@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
@AshutoshKumar-gc1sy
@AshutoshKumar-gc1sy 2 жыл бұрын
this is the best teacher for dsa on youtube i am sure...
@preranaramteke5908
@preranaramteke5908 2 жыл бұрын
Thanks Anuj Bhaiya,For Making DSA Easy to Learn
@BRSanush
@BRSanush 2 жыл бұрын
Crystal Clear Explaination! Thank you so much...
@everymaterialforstudy4893
@everymaterialforstudy4893 2 жыл бұрын
Thank you sir your teaching method is amazing its really helpful to understand the concept of dsa
@gpavansai7207
@gpavansai7207 Жыл бұрын
Thank You Anuj Bhaiya, now I am clear with Floyd's Cycle Detection Algorithm. :)
@swethakare429
@swethakare429 2 жыл бұрын
Easy to understand..very nice I am following all ur lectures...!!!
@sanketgoel6453
@sanketgoel6453 Жыл бұрын
this dsa-algo course is really helpful , if possible create more videos like this to solve the classical question of dsa
@RohitKumar-nb8qe
@RohitKumar-nb8qe 2 күн бұрын
It was simply awesome and crystal clear..
@mohammedsayeed4876
@mohammedsayeed4876 2 жыл бұрын
What a mind blowing and easy explanation
@pranjalnama2420
@pranjalnama2420 Жыл бұрын
thank you so much sir i was struggling to understand the second proof but you made it clear. ❤
@ravikumar4870
@ravikumar4870 Жыл бұрын
YES, IT WAS HELPFUL. THANKYOU SO MUCH FOR SHARING YOUR KNOWLEDGE WITH US.
@arshadahmed4951
@arshadahmed4951 Жыл бұрын
👍 YES, IT WAS HELPFUL. THANKYOU SO MUCH FOR SHARING YOUR KNOWLEDGE WITH US. 🙏🙏🔥🔥🔥
@DipsOfficial802
@DipsOfficial802 10 ай бұрын
Thank u Anuj Bhaiya
@aryansinha1818
@aryansinha1818 2 жыл бұрын
Bahut se bhi uppppar helpful
@shivamchouhan8426
@shivamchouhan8426 2 жыл бұрын
your explain's skill really good , i got this linked list problem .Thanks keep contniue.
@noormaaz
@noormaaz 2 жыл бұрын
Big Yes! Apne naya sekha diya
@rohan8758
@rohan8758 6 ай бұрын
Nice explanation Anuj Bhaiyan ji
@kishandwivedi2444
@kishandwivedi2444 2 жыл бұрын
Tagda explanation bhaiya ji Bs isi trh aur saare problems ki vdo daalte rho
@ThisAmit
@ThisAmit 9 ай бұрын
Yes it was helpful. Thank you.
@mritunjay7065
@mritunjay7065 2 жыл бұрын
Simple and best explanation !
@tejaslomate9214
@tejaslomate9214 Жыл бұрын
yes, it is very helpful sir..
@arifsaleem-7377
@arifsaleem-7377 5 ай бұрын
wonderful explanation
@srishtychoudhary7750
@srishtychoudhary7750 Жыл бұрын
yes, it was helpful. Great Explanation
@Atul_Agnihotri
@Atul_Agnihotri 11 ай бұрын
Yes, It was helpful.
@kartikkusmude9008
@kartikkusmude9008 Жыл бұрын
Best explanation for this question
@moshoyab4964
@moshoyab4964 2 жыл бұрын
Bhaiya ye course complete kerna bht acha course h very useful h or thoda jaldi jaldi videos dalo awesome course h ♥️♥️♥️
@mindbehaviour9195
@mindbehaviour9195 2 жыл бұрын
Maja aa gaya bhai, best video on linkedlist
@mohdumar6990
@mohdumar6990 2 жыл бұрын
bhot bdiya mzaa aagya bhaiya
@eddiepulaski237
@eddiepulaski237 Жыл бұрын
Yes, It was very very helpful
@shabbirk
@shabbirk 2 жыл бұрын
That was a fantastic explanation!
@ankursahu7704
@ankursahu7704 2 жыл бұрын
As always It was helpful. Thanks for the explanation :)
@kondurisaivarshath686
@kondurisaivarshath686 2 ай бұрын
YES,IT WAS HELPFUL TQ Anuj Bhaiya
@roopeshverma9719
@roopeshverma9719 6 ай бұрын
Thanks sir, the proof was the simplest explaination ever!
@Kunalkekaram
@Kunalkekaram 19 күн бұрын
bhaiya kya tagda dry run krke smjhaya hai mja hi aagya
@sakshi07222
@sakshi07222 Жыл бұрын
Best explanation ever got for this problem
@Mahendra-Singh-048
@Mahendra-Singh-048 Жыл бұрын
yes, it was helpful.
@ramankr0022
@ramankr0022 11 ай бұрын
extremely helpful. thanks.
@workwithmohiit
@workwithmohiit 7 ай бұрын
Yes it was helpful sir
@maheshmirje5657
@maheshmirje5657 11 ай бұрын
Yes it was helpful!!
@Sandeep_Kumar2022
@Sandeep_Kumar2022 4 ай бұрын
Yes, helpful video ❤❤
@KaranBulani
@KaranBulani 9 ай бұрын
Amazing explanation
@anuragrajput6479
@anuragrajput6479 Жыл бұрын
Thank you .
@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; }
@shivamgupta-ch8kw
@shivamgupta-ch8kw Жыл бұрын
Best explaination on the youtube...Thank you bhaiyaaaaaa
@arshadkhan-vl5kh
@arshadkhan-vl5kh Жыл бұрын
yes !! it was helpful.
@anujchoubey2453
@anujchoubey2453 2 жыл бұрын
Wonderful explanation 👏
@blackwolfkills
@blackwolfkills 2 жыл бұрын
Great explaination
@user-lu7dh6cm7q
@user-lu7dh6cm7q Жыл бұрын
nice explanation.
@glorioustrex5234
@glorioustrex5234 2 жыл бұрын
Yes it was helpful, thankyou
@abhijeetmohapatra808
@abhijeetmohapatra808 2 жыл бұрын
Yes, This was helpful ❤️
@kapiljetwani3540
@kapiljetwani3540 2 жыл бұрын
thank you bhaiya❤❤
@circketblendwithmusic
@circketblendwithmusic Жыл бұрын
Helpful video
@shivamjha464
@shivamjha464 2 жыл бұрын
Finally understood, thanks!
@mruduladdipalli5417
@mruduladdipalli5417 2 жыл бұрын
Ek Number Bhai
@cricketind8830
@cricketind8830 2 жыл бұрын
Yes, very helpful
@Ak-in5cu
@Ak-in5cu 2 жыл бұрын
bhaiya yaar matlab maza hi aa gya
@ayushp4471
@ayushp4471 2 жыл бұрын
thank you bhaiya ❤
@BhaktiPath-gk6fo
@BhaktiPath-gk6fo Жыл бұрын
Best Video in KZfaq till date.
@outoftheboxman
@outoftheboxman Жыл бұрын
YES, IT WAS HELPFUL
@VkThummanapally
@VkThummanapally 2 жыл бұрын
Yes Very Helpful
@sabyasachikarmakar8598
@sabyasachikarmakar8598 Жыл бұрын
really helpful
@kartikking7
@kartikking7 2 жыл бұрын
Yes ,it was helpful!
@user-ds4ym3hs4e
@user-ds4ym3hs4e 7 ай бұрын
Next level 💯 👌 bhai (bro) , I just love the way how you proved that. Literally great 👍 explanation 👏
@subhamadhikari
@subhamadhikari Жыл бұрын
Thank you brother!
@SunoTohSahi
@SunoTohSahi 2 жыл бұрын
gazab bhaiya gazab 🔥🔥🔥. !!!!!!!!!!!
@s.g.prajapati3597
@s.g.prajapati3597 2 жыл бұрын
The idea was helpful!
@yashkhanna4942
@yashkhanna4942 Жыл бұрын
Yes it is helpful.
@vrindasharma4035
@vrindasharma4035 2 жыл бұрын
it was very helpful bhaiyaa!
@sn8.f
@sn8.f Жыл бұрын
This is awesome! Thank you so much
@anupchaudhary4253
@anupchaudhary4253 Жыл бұрын
Great explanation ❤
@amolnakhate6274
@amolnakhate6274 Жыл бұрын
it was very useful
@vaibhzDixit
@vaibhzDixit 12 күн бұрын
Thanks alot
@adinathkolhapure6697
@adinathkolhapure6697 2 жыл бұрын
YES, It was helpful.💖
@AbhishekKumar-cd4gg
@AbhishekKumar-cd4gg Ай бұрын
nice explanation
@utkarshgautam1940
@utkarshgautam1940 2 жыл бұрын
ek number bhai
@mcafree1345
@mcafree1345 Жыл бұрын
best explainnation
@furqanahmad5446
@furqanahmad5446 Жыл бұрын
very helpful.. thank u bhaiya
@iti_koookie9678
@iti_koookie9678 2 жыл бұрын
Thank you so much It was so helpful... Just keep going 👍
@siddharthkaushik286
@siddharthkaushik286 Жыл бұрын
Yes it was helpful
@good114
@good114 Жыл бұрын
Thank you Sir💕❤️❤️💕
@karishmashaik2729
@karishmashaik2729 Жыл бұрын
YES,It is helpful
@ashutoshkumar7276
@ashutoshkumar7276 2 жыл бұрын
Proof was amazing, thanks
@abhinavchetan9575
@abhinavchetan9575 2 жыл бұрын
Very niceee keep up the great work👍👍
@onemansvoice4256
@onemansvoice4256 2 жыл бұрын
Yes, it was helpful
@harshverm776
@harshverm776 Жыл бұрын
Thanks Bro !!!
@phoenixelixir7076
@phoenixelixir7076 10 ай бұрын
Thanks 🙏
@wombodombo9005
@wombodombo9005 9 ай бұрын
Very good video thank you
@satyam2921
@satyam2921 2 жыл бұрын
Thanks for the video
@infinity2arbitrary681
@infinity2arbitrary681 2 жыл бұрын
It was really very helpful thanks 👍
@girish6064
@girish6064 6 ай бұрын
Thanks
@tusharmehra3867
@tusharmehra3867 Жыл бұрын
yes it was helpful
@yashjadhav6838
@yashjadhav6838 2 жыл бұрын
Jod! explanation
UNO!
00:18
БРУНО
Рет қаралды 3,1 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 5 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 9 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 37 МЛН
Interview Question: Start of Loop in a Linked List
10:37
Gaurav Sen
Рет қаралды 143 М.
One Effective Trick to Learn Coding Fast (Works in 2024)
4:53
CodeWithHarry
Рет қаралды 296 М.
UNO!
00:18
БРУНО
Рет қаралды 3,1 МЛН