We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05471f commit b139a51Copy full SHA for b139a51
course-schedule/yolophg.js
@@ -1,5 +1,5 @@
1
-// Time Complexity: O(m * n)
2
-// Space Complexity: O(m * n)
+// Time Complexity: O(numCourses * E)
+// Space Complexity: O(numCourses * E)
3
4
// initialize an array to keep track of the in-degrees for each course
5
let inDegree = new Array(numCourses).fill(0);
0 commit comments