Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Linked List Cycle 2 (LeetCode 142) | Full solution with mathematical proof | Study Algorithms

Автор: Nikhil Lohia

Загружено: 2021-12-12

Просмотров: 17291

Описание:

Given a single linked list that contains a loop, find the node where the cycle starts. A very famous problem and an extension of detecting the loop. Using a slow pointer and fast pointer, can help to determine the meeting point. This video gives a mathematical proof on how the pointers meet at the start of loop. All along with diagrams and a dry-run of code in JAVA.

Chapters:
00:00 - Intro
01:11 - Problem statement and description
02:11 - Brute Force approach to find the cycle start point
05:16 - Efficient solution to find the cycle start point
08:27 - Mathematical proof of Floyd-Warshall algorithm
14:52 - Dry-run of code
16:55 - Final Thoughts

Actual problem on LeetCode: https://leetcode.com/problems/linked-...

📚 Links to topics I talk about in the video:
Detect Cycle in Linked List:    • Linked List Cycle (LeetCode 141) | Full so...  
Linked List Introduction:    • Linked List Data Structure explained with ...  
Linked List Traversals:    • Traversing a Linked List | Challenges and ...  
Brute Force Method:    • Brute Force algorithms with real life exam...  
Time Complexity:    • Big O Notation Simplified to the MAX | Stu...  
Playlist on Linked Lists:    • Linked Lists  

📘 A text based explanation is available at: https://studyalgorithms.com

Code on Github: https://github.com/nikoo28/java-solut...
Test-cases on Github: https://github.com/nikoo28/java-solut...

📖 Reference Books:
Starting Learn to Code: https://amzn.to/36pU0JO
Favorite book to understand algorithms: https://amzn.to/39w3YLS
Favorite book for data structures: https://amzn.to/3oAVBTk
Get started for interview preparation: https://amzn.to/39ysbkJ

🔗 To see more videos like this, you can show your support on: https://www.buymeacoffee.com/studyalg...

🎥 My Recording Gear:
Recording Light: https://amzn.to/3pAqh8O
Microphone: https://amzn.to/2MCX7qU
Recording Camera: https://amzn.to/3alg9Ky
Tablet to sketch and draw: https://amzn.to/3pM6Bi4
Surface Pen: https://amzn.to/3pv6tTs
Laptop to edit videos: https://amzn.to/2LYpMqn


💻 Get Social 💻
Follow on Facebook at:   / studyalgos  
Follow on Twitter at:   / studyalgorithms  
Follow on Tumblr at:   / studyalgos  
Subscribe to RSS feeds: https://studyalgorithms.com/feed/
Join fan mail: http://eepurl.com/g9Dadv

#leetcode #programming #linkedlists

Linked List Cycle 2 (LeetCode 142) | Full solution with mathematical proof | Study Algorithms

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Linked List Cycle (LeetCode 141) | Full solution with demo | Floyd Warshall | Study Algorithms

Linked List Cycle (LeetCode 141) | Full solution with demo | Floyd Warshall | Study Algorithms

Intersection of Two Linked Lists (LeetCode 160) | Full solution with animations | Study Algorithms

Intersection of Two Linked Lists (LeetCode 160) | Full solution with animations | Study Algorithms

Список переупорядочивания (LeetCode 143) | Полное решение с 3-шаговым процессом и анимацией

Список переупорядочивания (LeetCode 143) | Полное решение с 3-шаговым процессом и анимацией

Weird Habits That Actually Reveal High Intelligence

Weird Habits That Actually Reveal High Intelligence

Задача из вступительных Стэнфорда

Задача из вступительных Стэнфорда

HackerRank - Reverse Linked List | Full solution with visuals | Study Algorithms

HackerRank - Reverse Linked List | Full solution with visuals | Study Algorithms

Цикл связных списков II | Код Leet 142 | Теория объяснена + код Python

Цикл связных списков II | Код Leet 142 | Теория объяснена + код Python

Подъём по лестнице (LeetCode 70) | Полное решение с анимацией | Dynamic Easy | Алгоритмы обучения

Подъём по лестнице (LeetCode 70) | Полное решение с анимацией | Dynamic Easy | Алгоритмы обучения

Внезапно миролюбивый Путин снова на связи (English subtitles)

Внезапно миролюбивый Путин снова на связи (English subtitles)

Longest Consecutive Sequence (LeetCode 128) | Full solution quick and easy explanation | Interviews

Longest Consecutive Sequence (LeetCode 128) | Full solution quick and easy explanation | Interviews

Linked Lists

Linked Lists

Linked List Cycle - Floyd's Tortoise and Hare - Leetcode 141 - Python

Linked List Cycle - Floyd's Tortoise and Hare - Leetcode 141 - Python

Middle of a Linked List (LeetCode 876) | Full Solution with animations | Study Algorithms

Middle of a Linked List (LeetCode 876) | Full Solution with animations | Study Algorithms

Я плохо разбирался в структурах данных и алгоритмах. И вот что я сделал.

Я плохо разбирался в структурах данных и алгоритмах. И вот что я сделал.

Search a 2D matrix (LeetCode 74) | Full solution with visual examples and proof

Search a 2D matrix (LeetCode 74) | Full solution with visual examples and proof

ВСЕ накопители ДАННЫХ: объясняю за 8 минут

ВСЕ накопители ДАННЫХ: объясняю за 8 минут

Reverse Linked List 2 (LeetCode 92) | Full simplified solution | Animations and Demo

Reverse Linked List 2 (LeetCode 92) | Full simplified solution | Animations and Demo

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Copy List with Random Pointer - Linked List - Leetcode 138

Copy List with Random Pointer - Linked List - Leetcode 138

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com