Intersection of Two Linked Lists | Live Coding with Explanation | Leetcode - 160

  Рет қаралды 15,697

Algorithms Made Easy

Algorithms Made Easy

Күн бұрын

Пікірлер: 46
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
We hope you all are enjoying our videos!!! Don't forget to leave a comment!!! Please like the video to support us!!! Questions you might like: ✅✅✅[ Tree Data Structure ] : kzbin.info/aero/PLJtzaiEpVo2zx-rCqLMmcFEpZw1UpGWls ✅✅✅[ Graphs Data Structure ] : kzbin.info/aero/PLJtzaiEpVo2xg89cZzZCHqX03a1Vb6w7C ✅✅✅[ February Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2wrfvII0eZQsPm-MZCmHodm ✅✅✅[ January Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2wCalBcRcNjXQ0C6ku3dRkn ✅✅✅[ December Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2xo8OdPZxrpybGR8FmzZpCA ✅✅✅[ November Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2yMYz5RPH6pfB0wNnwWsK7e ✅✅✅[ August Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2xu4h0gYQzvOMboclK_pZMe ✅✅✅July Leetcoding challenges: kzbin.info/aero/PLJtzaiEpVo2wrUwkvexbC-vbUqVIy7qC- ✅✅✅June Leetcoding challenges: kzbin.info/aero/PLJtzaiEpVo2xIfpptnCvUtKrUcod2zAKG ✅✅✅May Leetcoding challenges: kzbin.info/aero/PLJtzaiEpVo2wRmUCq96zsUwOVD6p66K9e ✅✅✅Cracking the Coding Interview - Unique String: kzbin.info/aero/PLJtzaiEpVo2xXf4LZb3y_BopOnLC1L4mE Struggling in a question?? Leave in a comment and we will make a video!!!🙂🙂🙂
@koushik_cse
@koushik_cse Жыл бұрын
Thnak you for clear explanation with visuals. 0:51 Explanation 3:32 Code
@susheelkumar-lq6gy
@susheelkumar-lq6gy 3 жыл бұрын
Both approaches were easy to understand but 2nd approch is very concise. Loved your explanation. Thank you 💝 for such a good video.
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
Happy to help!! 😊
@darshilvshah
@darshilvshah 3 жыл бұрын
Easy and a simple approach, will definitely recommend this channel to my friends !!
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
Thankyou!!
@sreekanthpulicherla
@sreekanthpulicherla 3 жыл бұрын
The second explanation was simply amazing :)
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 2 жыл бұрын
Thankyou !!
@chaitanyakarthik3536
@chaitanyakarthik3536 2 жыл бұрын
Very Nice Visualization which made whole thing clear.
@varanasibindu8987
@varanasibindu8987 Жыл бұрын
good explanation, second approach is so simple and explained very well. thankyou
@tvsureshbabu258
@tvsureshbabu258 3 жыл бұрын
Though first approch is more intuitive, I liked the second approach Thanks for the video
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
Thanks !! 😊
@dhir_tech
@dhir_tech 2 жыл бұрын
Too the point Explained nice vdo ever I hv on utube🤗
@TechnicalChoraSandeep_Verma
@TechnicalChoraSandeep_Verma Жыл бұрын
Thanks Second method is very easy
@prathamchitransh5338
@prathamchitransh5338 2 жыл бұрын
Best Explaination ma'am
@mohammadyahya78
@mohammadyahya78 2 жыл бұрын
None on youtube explains this problem better than this video. Thank you. I still though don't get how the circular approach where we exchange nodes will stop as we can keep changing heads forever as I understand?
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 2 жыл бұрын
Thank you!! Do not forget to subscribe to the channel!! 😊😊
@nikitajaiswal9112
@nikitajaiswal9112 2 жыл бұрын
You really made algorithm easy😍🥰
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 2 жыл бұрын
Glad you liked it !!
@ComputerScienceSimplified
@ComputerScienceSimplified 3 жыл бұрын
Incredible video, keep up the amazing work! :)
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
Thank you so much!!! 😊😊
@sakshisharma6765
@sakshisharma6765 Жыл бұрын
Nice explaination :)
@himanshibaranwal7297
@himanshibaranwal7297 3 жыл бұрын
Is anyone not getting Time Limit Exceeded for the second code?
@tyagig2923
@tyagig2923 Жыл бұрын
What is while(diff>>0)
@SANCHITJAIN_
@SANCHITJAIN_ 3 жыл бұрын
excellent explanation
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
Thanks !!
@ashokdurunde1814
@ashokdurunde1814 2 жыл бұрын
thank you for your content
@pedrohenriqueleite9382
@pedrohenriqueleite9382 Жыл бұрын
why use tempA and headA? have possibility of use just one?
@NAMASTE_PK
@NAMASTE_PK 2 жыл бұрын
Thank you mam it helps me alot
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 2 жыл бұрын
Most welcome!!
@mohammadasad6044
@mohammadasad6044 3 жыл бұрын
very easy thank you very much !
@chandanpatra3850
@chandanpatra3850 2 жыл бұрын
thanks mam
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 2 жыл бұрын
Most welcome!!
@ayeshaadhikari6123
@ayeshaadhikari6123 3 жыл бұрын
thank u so much di :)
@pavankumar.m1341
@pavankumar.m1341 3 жыл бұрын
I wonder how this works for number 1? it should break loop at when both tempA and tempB has value 1 but moving for 8
@applecrunch909
@applecrunch909 2 жыл бұрын
did you figure this out?
@ravipratap2900
@ravipratap2900 2 жыл бұрын
No bro both 1 is at different memory location both are different so loop will not break nd will move for 8. Now 8 is at same address for both the lists hence will break now.... Read the input explanation carefully it is written there clearly
@geekaffairs6475
@geekaffairs6475 3 жыл бұрын
Good one
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
Thanks !!
@ravipratap2900
@ravipratap2900 2 жыл бұрын
What if there is only only one node in both the lists pointing to each other for this case loop will continue for infinite....can anyone explain please ?
@CRamPrasannaCV
@CRamPrasannaCV 3 жыл бұрын
Understood :-)
@sudharshanchakravarthy7199
@sudharshanchakravarthy7199 3 жыл бұрын
great!
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
Thanks 😊
@diabolicfreak
@diabolicfreak 3 жыл бұрын
How does the second method not end in an endless loop in the case of no intersection? I dont get it
@diabolicfreak
@diabolicfreak 3 жыл бұрын
Oh, I get it, both the pointers become null together hence they become equal and break out of the loop
@sneezygibz6403
@sneezygibz6403 3 жыл бұрын
@@diabolicfreak thanks for that lol. I was wondering like hmmm what happens if there's no intersection
Intersection of Two Linked Lists - Leetcode 160 - Python
8:13
Reverse Nodes in k-Group O(1) | Live Coding with Explanation | Leetcode - 25
15:25
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 86 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 36 МЛН
L12. Find the intersection point of Y LinkedList
32:05
take U forward
Рет қаралды 81 М.
Leetcode 160. Intersection of Two Linked Lists || intuition with code
15:18
Search a 2D Matrix II | Live Coding with Explanation | Leetcode - 240
7:06
Algorithms Made Easy
Рет қаралды 14 М.
Palindrome Linked List | Live Coding with Explanation | Leetcode - 234
10:30
Algorithms Made Easy
Рет қаралды 10 М.
Merge Two Sorted Lists | Microsoft | Yahoo | Amazon
20:47
take U forward
Рет қаралды 200 М.
My Brain after 569 Leetcode Problems
7:50
NeetCode
Рет қаралды 2,7 МЛН
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 18 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН