Course Schedule | Deadlock detection | Graph coloring | Leetcode

Published: 29 May 2020
on channel: Techdose
68,344
1.1k

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:   / surya.pratap.k  
LinkedIn:   / surya-pratap-kahar-47bb01168  
=================================================================

CODE LINK: https://gist.github.com/SuryaPratapK/...
SIMILAR PROBLEMS:-
Detect cycle in a directed graph:    • Detect cycle in a directed graph  

Detect cycle in an undirected graph:    • Detect cycle in an undirected graph |...  


Watch video Course Schedule | Deadlock detection | Graph coloring | Leetcode online without registration, duration hours minute second in high quality. This video was added by user Techdose 29 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 68,344 once and liked it 1.1 thousand people.