Загрузка страницы

Course Schedule | Deadlock detection | Graph coloring | Leetcode #207

This video explains a very important programming interview problem which is, given a course schedule with prerequisites for each course, find if it is possible to take all the courses satisfying the prerequisites for each course. If it is possible then return TRUE otherwise FALSE.This problem is same as detecting a deadlock in a single resource instance distributed system.In such a system, if we have a cycle then we a deadlock.Therefore, this problem further reduces to finding cycle in a graph.I have shown the solution using graph coloring to detect cycle in a directed graph.At the end of the video, i have explained the CODE. CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)

=================================================================
INSTAGRAM: https://www.instagram.com/surya.pratap.k/
LinkedIn: https://www.linkedin.com/in/surya-pratap-kahar-47bb01168
=================================================================

CODE LINK: https://gist.github.com/SuryaPratapK/bc2eb3010496a98bb3507eecc06e5887
SIMILAR PROBLEMS:-
Detect cycle in a directed graph: https://youtu.be/0dJmTuMrUZM

Detect cycle in an undirected graph: https://youtu.be/L0DcePeWHnM

Видео Course Schedule | Deadlock detection | Graph coloring | Leetcode #207 канала TECH DOSE
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
29 мая 2020 г. 19:49:18
00:09:08
Яндекс.Метрика