Mid-levelMid (3–6 yrs)CodingPythonGoogleAmazonTikTok
Course Schedule (cycle detection)
There are numCourses and prerequisites[i] = [a,b] meaning b before a. Return true if you can finish all courses.
Answers use simple, clear English.
Time: O(V+E)Space: O(V+E)
Confidence
midsenior#graph#topo-sort#blind75