Тёмный

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

Anuj Bhaiya
Подписаться 496 тыс.
Просмотров 112 тыс.
50% 1

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.geeksforge...
🥳 Join our Telegram Community:
Telegram channel: telegram.me/re...
Telegram group: telegram.me/ds...
🚀 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

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 301   
@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
@danishuddin9752
@danishuddin9752 2 года назад
just wow! thank you very much for making DSA easy comfortable and lovable!
@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.
@manishkumargupta8677
@manishkumargupta8677 2 года назад
Aisi explaination with proof mai pahli baar dekh raha hun Thank you very much bhaiya
@good114
@good114 Год назад
Thank you Sir💕❤️❤️💕
@sanketgoel6453
@sanketgoel6453 Год назад
this dsa-algo course is really helpful , if possible create more videos like this to solve the classical question of dsa
@iti_koookie9678
@iti_koookie9678 2 года назад
Thank you so much It was so helpful... Just keep going 👍
@preranaramteke5908
@preranaramteke5908 2 года назад
Thanks Anuj Bhaiya,For Making DSA Easy to Learn
@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
@tejaslomate9214
@tejaslomate9214 Год назад
yes, it is very helpful sir..
@kartikkusmude9008
@kartikkusmude9008 Год назад
Best explanation for this question
@pranjalnama2420
@pranjalnama2420 Год назад
thank you so much sir i was struggling to understand the second proof but you made it clear. ❤
@BRSanush
@BRSanush 2 года назад
Crystal Clear Explaination! Thank you so much...
@RohitKumar-nb8qe
@RohitKumar-nb8qe Месяц назад
It was simply awesome and crystal clear..
@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; }
@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.
@shivamgupta-ch8kw
@shivamgupta-ch8kw Год назад
Best explaination on the youtube...Thank you bhaiyaaaaaa
@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
@gpavansai7207
@gpavansai7207 Год назад
Thank You Anuj Bhaiya, now I am clear with Floyd's Cycle Detection Algorithm. :)
@anjalitehlani4114
@anjalitehlani4114 3 года назад
So helpful🤗 Thank you❤️
@logicalrisi
@logicalrisi 2 года назад
Yes
@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.
@kondurisaivarshath686
@kondurisaivarshath686 3 месяца назад
YES,IT WAS HELPFUL TQ Anuj Bhaiya
@Kunalkekaram
@Kunalkekaram Месяц назад
bhaiya kya tagda dry run krke smjhaya hai mja hi aagya
@DipsOfficial802
@DipsOfficial802 11 месяцев назад
Thank u Anuj Bhaiya
@sakshi07222
@sakshi07222 Год назад
Best explanation ever got for this problem
@swethakare429
@swethakare429 2 года назад
Easy to understand..very nice I am following all ur lectures...!!!
@levi-lb6dp
@levi-lb6dp 2 года назад
Thanks ❤️
@arshadahmed4951
@arshadahmed4951 Год назад
👍 YES, IT WAS HELPFUL. THANKYOU SO MUCH FOR SHARING YOUR KNOWLEDGE WITH US. 🙏🙏🔥🔥🔥
@gouravrawat6476
@gouravrawat6476 22 дня назад
Amazing and Best explanation
@anuragchatterjee241
@anuragchatterjee241 3 года назад
awesome explanation bhaiya 😀
@moshoyab4964
@moshoyab4964 3 года назад
Bhaiya ye course complete kerna bht acha course h very useful h or thoda jaldi jaldi videos dalo awesome course h ♥️♥️♥️
@MOHAMMEDKHALANDER-g1c
@MOHAMMEDKHALANDER-g1c 9 месяцев назад
Next level 💯 👌 bhai (bro) , I just love the way how you proved that. Literally great 👍 explanation 👏
@s.g.prajapati3597
@s.g.prajapati3597 2 года назад
The idea was helpful!
@cricketind8830
@cricketind8830 2 года назад
Yes, very helpful
@ravikumar4870
@ravikumar4870 Год назад
YES, IT WAS HELPFUL. THANKYOU SO MUCH FOR SHARING YOUR KNOWLEDGE WITH US.
@sanjayguptab.r1899
@sanjayguptab.r1899 3 месяца назад
Yes it was helpful
@roopeshverma9719
@roopeshverma9719 7 месяцев назад
Thanks sir, the proof was the simplest explaination ever!
@amitkumarlkr
@amitkumarlkr 2 года назад
Great 😃 explanation thank you 😊
@rohan8758
@rohan8758 7 месяцев назад
Nice explanation Anuj Bhaiyan ji
@everymaterialforstudy4893
@everymaterialforstudy4893 2 года назад
Thank you sir your teaching method is amazing its really helpful to understand the concept of dsa
@shivamchouhan8426
@shivamchouhan8426 2 года назад
your explain's skill really good , i got this linked list problem .Thanks keep contniue.
@arifsaleem-7377
@arifsaleem-7377 7 месяцев назад
wonderful explanation
@yashjadhav6838
@yashjadhav6838 2 года назад
Jod! explanation
@ananyasiingh21
@ananyasiingh21 5 месяцев назад
Just give an additional if statement to handle the null pointer error in the detectCycle function.
@ThisAmit
@ThisAmit 10 месяцев назад
Yes it was helpful. Thank you.
@eddiepulaski237
@eddiepulaski237 Год назад
Yes, It was very very helpful
@kishandwivedi2444
@kishandwivedi2444 2 года назад
Tagda explanation bhaiya ji Bs isi trh aur saare problems ki vdo daalte rho
@BhaktiPath-gk6fo
@BhaktiPath-gk6fo Год назад
Best Video in RU-vid till date.
@infinity2arbitrary681
@infinity2arbitrary681 2 года назад
It was really very helpful thanks 👍
@saniyapathan8968
@saniyapathan8968 3 месяца назад
Best!!
@atharvshelgaonkar4694
@atharvshelgaonkar4694 3 года назад
Yes video was helpful 😃
@mohammedsayeed4876
@mohammedsayeed4876 3 года назад
What a mind blowing and easy explanation
@shivamKumar-pv7gz
@shivamKumar-pv7gz 2 года назад
Wonderful explanation bahiya
@QniqueTales
@QniqueTales 3 года назад
it is helpfull bhaiya
@JiGLifyy
@JiGLifyy 3 года назад
Really helping video bhiya...keep uploading...placement season is going on . (tier 3 cllg )😅
@kartikpatidar3378
@kartikpatidar3378 2 года назад
Yes
@Atul_Agnihotri
@Atul_Agnihotri Год назад
Yes, It was helpful.
@animetimes5563
@animetimes5563 3 года назад
yes
@noormaaz
@noormaaz 2 года назад
Big Yes! Apne naya sekha diya
@Sandeep_Kumar2022
@Sandeep_Kumar2022 6 месяцев назад
Yes, helpful video ❤❤
@jayeshsingh7764
@jayeshsingh7764 2 года назад
YES
@mindbehaviour9195
@mindbehaviour9195 2 года назад
Maja aa gaya bhai, best video on linkedlist
@workwithmohiit
@workwithmohiit 9 месяцев назад
Yes it was helpful sir
@SunoTohSahi
@SunoTohSahi 2 года назад
gazab bhaiya gazab 🔥🔥🔥. !!!!!!!!!!!
@outoftheboxman
@outoftheboxman Год назад
YES, IT WAS HELPFUL
@subhamadhikari
@subhamadhikari Год назад
Thank you brother!
@Mahendra-Singh-048
@Mahendra-Singh-048 Год назад
yes, it was helpful.
@maheshmirje5657
@maheshmirje5657 Год назад
Yes it was helpful!!
@karishmashaik2729
@karishmashaik2729 Год назад
YES,It is helpful
@mcafree1345
@mcafree1345 Год назад
best explainnation
@AbhishekKumar-cd4gg
@AbhishekKumar-cd4gg 2 месяца назад
nice explanation
@pratikchakraborty6999
@pratikchakraborty6999 3 года назад
Bhaiyaa please upload more project bases learning videos on android development playlist. Earlier 5 projects were awesome.
@mruduladdipalli5417
@mruduladdipalli5417 2 года назад
Ek Number Bhai
@MohitJain-g9z
@MohitJain-g9z Год назад
nice explanation.
@VkThummanapally
@VkThummanapally 2 года назад
Yes Very Helpful
@srishtychoudhary7750
@srishtychoudhary7750 Год назад
yes, it was helpful. Great Explanation
@nargisp434
@nargisp434 2 года назад
yes it is very very very helpful..plz make video on some more question
@onlyPROFIT_BITCOIN
@onlyPROFIT_BITCOIN 3 года назад
Yes it was helpful 😇
@anujagrawal60
@anujagrawal60 2 года назад
Hi Anuj, this was an excellent explanation. Just a suggestion that you can take the refrence from relative velocity to even simpler. Also you can say that 2*speed_slow = speed_fast for given time resulting the distance equation for same time. Also, thank you again for this great explanation. Really appreciate your efforts and hard work
@Ak-in5cu
@Ak-in5cu 2 года назад
bhaiya yaar matlab maza hi aa gya
@anuragrajput6479
@anuragrajput6479 Год назад
Thank you .
@amolnakhate6274
@amolnakhate6274 Год назад
it was very useful
@sohampatil2742
@sohampatil2742 Год назад
Yes! It was helpful 😁🙂
@akhilballa8320
@akhilballa8320 Год назад
Veryy much helpful bro...thank you 🙇🙇
@girish6064
@girish6064 7 месяцев назад
Thanks
@circketblendwithmusic
@circketblendwithmusic 2 года назад
Helpful video
@sabyasachikarmakar8598
@sabyasachikarmakar8598 Год назад
really helpful
@ravikantmaurya1979
@ravikantmaurya1979 2 года назад
I saw your first video and you got a subscriber....
@vaibhzDixit
@vaibhzDixit Месяц назад
Thanks alot
@chetantailor3620
@chetantailor3620 3 года назад
very helpful.
@yashkhanna4942
@yashkhanna4942 2 года назад
Yes it is helpful.
@bharatmakkar9706
@bharatmakkar9706 Год назад
Clear-cut explanation😃
@sudhanshudwivedi9610
@sudhanshudwivedi9610 3 года назад
It was veryyyyyyy helpful❤❤✨ ye course jaldi jaldi complete kra dijiye bhaiya!🙂 please
@K.AnshulReddy
@K.AnshulReddy 3 месяца назад
lovely proof
@kapiljetwani3540
@kapiljetwani3540 2 года назад
thank you bhaiya❤❤
@yashkhanna4942
@yashkhanna4942 2 года назад
Yes, Helpful
@agyaani8060
@agyaani8060 3 года назад
It was veryyyyyyy helpful❤❤✨ ye course jaldi jaldi complete kra dijiye bhaiya!🙂
@chetan0930
@chetan0930 3 года назад
Your name😂
@abhijeetmohapatra808
@abhijeetmohapatra808 3 года назад
Yes, This was helpful ❤️
Далее