Given a number of courses and a list of prerequisite pairs, return true or false depending on whether it is possible to finish all courses.
Unlock detailed company stats for this questionUpgrade
Interview experiences
1 sharedCommunity answers
No answers contributed by the community yet.
Related questions
Given a list of jobs and a list of dependencies where each job depends on another job being completed first, determine if it is possible to complete all jobs.Given a list of trades, iterate to return buy/sell pairs and overall profit.Given a list of words, find the number of prefix pairs, i.e. pairs i, j where words[i] == words[j] or words[i].startswith(words[j]) or words[j].startswith(words[i]).Related courses

Course

Course
Course
